How to format JSON message to read easily

3

I need to do JSON message DEBUG. I would like one to have a formatting mechanism similar to the one you have in Eclipse for Java and JavaScript code formatting, but via console.

    
asked by anonymous 24.05.2014 / 21:58

2 answers

2

There are several JSON message formatters but what I like most is JSBeautifier . You can use it simply by copying your code to the Clipboard and opening the JSBeautifier.ORG site and then pasting the content into the indicated field. Type Ctrl+Enter to execute the formatting.

The JSBeautifier also supports the use via console% vi NODE JS or installing Python version.

See the details at link .

    
24.05.2014 / 22:05
1

underscore-cli tool should serve very well for this purpose.

You may be using this:

cat data.json | underscore print --color
    
24.05.2014 / 22:10