Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cryptonector
on June 16, 2014
|
parent
|
context
|
favorite
| on:
Jq: A lightweight and flexible command-line JSON p...
jq 'reduce .[] as $obj ({}; .+$obj)'
or
jq -s 'reduce .[] as $obj ({}; .+$obj)'
should do it. `+` adds objects by merging them.
kolev
on June 19, 2014
[–]
Thanks! I'm eager to try this and hopefully clean up my code!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: