- Does this handle relaxed JSON with comments or trailing commas?
- Yes. The formatter auto-corrects single-line and block comments, single-quoted strings, unquoted keys, and trailing commas. Strict JSON input works too — the output is always RFC-8259 compliant.
- Can I minify JSON instead of pretty-printing it?
- Use the 'minify' indent option to collapse all whitespace and output the smallest valid JSON. Other indents (2-space, 4-space, tab) pretty-print.
- Does the JSON formatter sort object keys?
- Toggle 'Sort keys' to alphabetize keys recursively through nested objects. Array order is always preserved — arrays are order-sensitive in JSON.