Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pretty_print_json_on_command_line [2015/02/11 16:11]
pretty_print_json_on_command_line [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== 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
 +
 +{{tag>linux}}