I have a JSON which looks like this:
{
"lorem": "ipsum",
"dolor": "sid",
"data": {
"key1": "value1",
"key2": "value2"
}
}
and I want an output which is ini like where I only need the content of 'data' (which is always flat, no branches). The output should look like this:
key1=value1
key2=value2
I can use jq (just don't get it running) but have to use a bash script for it. Can anyone help?