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.
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.
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.
JSBeautifier
also supports the use via console% vi NODE JS
or installing Python
version.
See the details at link .
underscore-cli
tool should serve very well for this purpose.
You may be using this:
cat data.json | underscore print --color