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

Editing json file in line with jq

I have a json file like this: { "arrays": [ { "name": "foo", "properties": [ { "type": "app", "url": "https://example.com", "checksum": "d6fd580fe890b826250aa5d5a88bcdb28839cff4d447ba51536cda4ceae89c4e" } ] } ] } I want to change the type to something else, delete the url and…

VIEW QUESTION
Back To Top
Search