I have a JSON structure as follows:
{
"key1": {
"isSecret": null,
"value": "value1"
},
"key2": {
"isSecret": null,
"value": "value2"
},
"key3": {
"isSecret": null,
"value": "value3"
}
Is it possible to use JMESPath to transform it to:
key1=value1 key2=value2 key3=value3
The only solution I found is to separately extract a list of keys and values using the following expressions:
keys([0].variables)|join(' ', @)
[0].variables.*.value|join(' ', @)
and then merge them using a script but I was wondering if there was a more direct and elegant solution in JMESPath.
Thanks in advance!