Pretty-print messy JSON, minify it back down, sort keys alphabetically, and get a validation error with the exact position when it will not parse. Key count, nesting depth, and byte size are shown alongside.
SponsorThis spot is open to one DevOps or AI tooling company at a time. Ask about sponsoring
116 of 118 run entirely in your browser (Weather Widget uses Open-Meteo; What's My IP asks this site's server).
Share on XShare on LinkedInMost JSON formatters stop at indentation. The useful part here is the metadata. Nesting depth tells you whether a payload is going to be painful to traverse, key count tells you whether an API response has grown since you last looked, and byte size tells you what you are shipping over the wire. Sorting keys is the trick that makes two JSON blobs diffable: sort both, then drop them into a diff checker and the real changes fall out.
The validator reports position rather than a vague failure, which matters when you are staring at a 4,000-line response body. Trailing commas, single quotes, and unquoted keys are the three things that break JSON most often, and all three produce a position you can jump straight to.
Format, minify, validate, and sort JSON. Shows key count, nesting depth, and file size.