How to modify a nested object with jq
You can also do simply
.nested += {freshly: "added"}
Then you can add multiple nested keys at once
Well I found out myself how to do it. If you have a better solution, you're more than welcome to give it here.
jq '.nested=(.nested + {"freshly": "added"})'
Just assign the new value to the nested object.
.nested.freshly = "added"