skip to Main Content

Nginx – How to use json data from an existing object to update an other object?

Here is my first input (recorded as bash var $services) It can contain multiple key based values. [ { "key": "movies-wikibase-jobrunner", "subPath": "LocalSettings.php", "cm": "movies-wikibase-jobrunner-localsettings-override-php" }, { "key": "movies-wikibase-jobrunner", "subPath": "jobrunner-entrypoint.sh", "cm": "movies-wikibase-jobrunner-jobrunner-entrypoint-sh" }, { "key": "movies-wikibase-wdqs-frontend", "subPath": "wdqs_front_index.html", "cm":…

VIEW QUESTION

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