Hacker GitHub

← All repos

trentm/json

View on GitHub ↗ ★ 1,560 JavaScript

A "json" command for massaging JSON on your Unix command line.

8 mentions on Hacker News by 8 people: 1 story, 7 comments · first 2012-04-20 · latest 2020-03-19

Mentions per year 8 mentions · busiest year 2012 (3)
20082026
  1. …json, a similar npm package, a little bit better for simple tasks. You can find more about it here: https://github.com/trentm/json As a JS dev I tend to have node installed anyhow so I just use a shell alias to wrap ‘node -pe’ these days.…
    comment by kylepdavis · 2020-03-19 · in Illustrated Jq Tutorial
  2. …example, basic manipulation is just: `echo '{"age":10}' | json -e 'this.age++' #=> {"age": 11}` 1: https://github.com/trentm/json
    comment by elcritch · 2017-07-01 · in Cicada – Unix shell written in Rust
  3. Or this: https://github.com/trentm/json (npm install -g json).
    comment by atsaloli · 2015-08-19 · in More shell, less egg (2011)
  4. For a similar tool written in javascript, check out json ( https://github.com/trentm/json ). I use both.
    comment by yunong · 2015-04-27 · in Jq – A Command-line JSON processor
  5. jq looks nice, I use another similar tool quite a lot [1]. [1]: https://github.com/trentm/json
    comment by jfroma · 2014-10-21 · in Hints for writing Unix tools
  6. request - https://github.com/mikeal/request jsontool - https://github.com/trentm/json mocha - https://github.com/visionmedia/mocha stream - http://nodejs.org/api/stream.html txn - https://github.com/iriscouch/txn follow -…
    comment by cjm · 2012-05-11 · in Our favorite node.js modules
  7. …also makes for really simple tools for extracting whatever "traditional" log lines you like. (see: https://github.com/trentm/json ) You can also easily add new fields without breaking existing log parsing code. I believe I first read about…
  8. ▲ 4
    A "json" command for massaging JSON on your Unix command line
    story by stevewilhelm · 2012-04-20 · 0 comments