James Bachini

Format JSON Tool

Format JSON

A simple tool to lint and format JSON because I was fed up of using the ones covered in ads.


The Javascript code that makes this work is quite simple:

const jsonObject = JSON.parse(input);
const formattedJSON = JSON.stringify(jsonObject, null, 4);

It can be used to format outputs prior to displaying the results of API queries or any other JSON found wild around the web.


Get The Blockchain Sector Newsletter, binge the YouTube channel and connect with me on Twitter

The Blockchain Sector newsletter goes out a few times a month when there is breaking news or interesting developments to discuss. All the content I produce is free, if you’d like to help please share this content on social media.

Thank you.

James Bachini

Disclaimer: Not a financial advisor, not financial advice. The content I create is to document my journey and for educational and entertainment purposes only. It is not under any circumstances investment advice. I am not an investment or trading professional and am learning myself while still making plenty of mistakes along the way. Any code published is experimental and not production ready to be used for financial transactions. Do your own research and do not play with funds you do not want to lose.


Posted

in

, , , , ,

by