I would like to make (using jq) from input:
{ key1: value1, key2: value2, key3: [ {key4: value3, key5: value5}, {key4: value4, key5: value6}, . . . {key4: valueN, key5: valueM}, . . . ] } this output:
{ key1: value1, key2: value2, value3: value5, value4: value6, . . . valueN: valueM, . . . } How to do it?
I have tried some ways, but I haven't able to find the proper solution, mainly jq generated separated objects, I would like to have only one output object containing keys from input object.
keyin your above examplekey3always?