wardi / jsonlines

Documentation for the JSON Lines text file format
http://jsonlines.org
136 stars 33 forks source link

mention the "jq" tool #6

Closed wbolster closed 9 years ago

wbolster commented 9 years ago

Instead of the magic Python hack as an alias, the example page should probably recommend using the "identifiy transform" operator . offered by jq (http://stedolan.github.io/jq/). This will produce nicely formatted JSON (even with colours if stdout is a tty) from a jsonlines file:

$ cat data.jsonl | jq .

Or even:

$ jq . data.jsonl
wardi commented 9 years ago

@wbolster ah, that's much better. Care to submit a pull request?

wardi commented 9 years ago

fixed in 35ccbf9

wbolster commented 9 years ago

Awesome, you beat me to it.