Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 582

how to parse json parameter file to semicolon separated string

$
0
0

I have this json file for parameters

[  {"ParameterKey": "code","ParameterValue": "ab"  },  {"ParameterKey": "env","ParameterValue": "prod"  },  {"ParameterKey": "api","ParameterValue": "testapi"  },  {"ParameterKey": "name","ParameterValue": "new"  }]

how can I parse this using jq into the following output

code=ab;env=prod;api=testapi;name=new

tried to parse using jq but I am not getting the correct output as shown above

Thanks


Viewing all articles
Browse latest Browse all 582


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>