Pretty-print, minify, and find the exact character where a document stops being valid
Format JSON with the indent you choose, minify it back down, sort object keys, and get the line, column and reason when a document is not valid JSON. The validator uses its own scanner rather than the browser's error text, because engine messages leave out the position.