skip to Main Content

Delete duplications in JSON file

I am trying to reedit json file to print only subgroups that has any attributes marked as "change": false. Json below: {"group":{ "subgroup1":{ "attributes":[ { "change":false, "name":"Name"}, { "change":false, "name":"SecondName"}, ], "id":1, "name":"MasterTest"}, "subgroup2":{ "attributes":[ { "change":true, "name":"Name" }, {…

VIEW QUESTION

Unable to get the value of variable inside a variable in azure pipelines – Ubuntu

I'm trying to use variables inside variables in azure pipelines. Below is an example of the bash script: #!/bin/bash customer=google environment=preprod android_google_preprod_account_activation_url=preprod.google.com echo "Customer is $customer" echo "Environment is $environment" var1=android_${customer}_${environment}_account_activation_url echo "variable is $var1" echo "original value is ${!var1}"…

VIEW QUESTION
Back To Top
Search