Timeline for Update object inside array inside another JSON object
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
11 hours ago | history | edited | Fravadona | CC BY-SA 4.0 |
added 4 characters in body
|
yesterday | history | edited | Fravadona | CC BY-SA 4.0 |
added 4 characters in body
|
yesterday | vote | accept | Vlado B. | ||
yesterday | comment | added | Vlado B. |
The |= is the trick I missed! Exact expression is jq '.a.b |= map(if .name == "name1" then (.param += {new: "QQQ"}) else . end)' . Thanks.
|
|
yesterday | history | answered | Fravadona | CC BY-SA 4.0 |