skip to Main Content

Json – jq equivalent in python

cat * | jq '.cis[].properties.cloud_vm_display_name' | grep -v null "azuXXXXX" "azuXXXXX" "azuXXXXXX" "azuXXXXXX" Need to extract cloud VM name from multiple json files where the array number is different in every file. a = data1['cis'][0]['properties']['TenantsUses'][0] print(a) b = data1['cis'][]['properties']['cloud_vm_display_name'] File…

VIEW QUESTION
Back To Top
Search