JSON editor
Paste JSON, then pick an action.
Paste JSON above to begin.
Work with JSON in the JSON Editor: format, minify, validate with error positions, sort keys and escape strings.
Paste JSON, then pick an action.
Format pretty-prints with 2-space indent; Minify strips all whitespace; Validate checks syntax and points at the exact failing character; Sort keys orders object keys alphabetically at every depth; Escape turns the whole document into a quoted JSON string.
After any successful action you get key count, maximum nesting depth and byte size. Deep nesting (dozens of levels) can crash naive parsers, so the depth number is a useful sanity check before sending data on.