How To Pretty Print JSON in Javascript/TypeScript
Overview Recently, while working on a DynamoDB editing tool, I needed to improve the look of my editor. The JSON was all in one line and it’s hard to see the values/properties that way. It turned out, pretty print JSON is quite simple with JSON.stringify. Let’s see how to do that. The JSON.stringify function I’ve … Read more