Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I found this super useful:

cat data.json | underscore print --color

Gives you a well-formatted, color coded output for your JSON data. That is just one of the many things it can do.



$ zsh_prompt> alias clijson="ruby -e 'require \"rubygems\";require \"json\"; require \"ap\"; j = JSON.parse(STDIN.gets); ap j'"

command_that_emits_json | clijson


underscore print --color < data.json

:)


cat data.json | python -mjson.tool

Everything but the color.


cat data.json | json_reformat

Seeing as lots of systems have yajl.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: