Format, validate, and minify JSON data.
JSON is parsed and serialized in the browser. Malformed input shows a validation error instead of crashing.