I am lost with an easy-looking JQjq problem. Given a key-value object, I want to transform the value into a nested object with a "value"value-key. I tried permutations with 'to_entries'to_entries and native output as well as the {}{}-output option, but without success. I'm convinced that there is a rather obvious solution, but I cannot find it.
Input:
{ "mykey" : "myvalue" }
{ "mykey" : "myvalue" }
Desired output:
{ "mykey" : { "value" : "myvalue" }}
{ "mykey" : { "value" : "myvalue" }}