User Tools

Site Tools


pretty_print_json_on_command_line

Pretty print JSON on command line

There are many tools which gets the job done. My favorite is

python -mjson.tool filename.json

or

curl http://localhost:8080/data | python -mjson.tool
pretty_print_json_on_command_line.txt · Last modified: 2015/02/11 15:12 by mihael