Validate JSON - SwiftBox
Check if JSON is valid and well-formed.
How to use
- Paste the JSON to check.
- See whether it validates and read any error message.
- Fix the issue and validate again.
Common use cases
- Gate config commits on valid syntax.
- Debug Unexpected token errors in the browser.
- Verify third-party or user-uploaded JSON.
FAQ
Which rules are used?
Strict JSON.parse. Single quotes, comments, and trailing commas fail.
Do I get line numbers?
You get the parser message; for large files, prettify then inspect.
JSON5 / JSONC?
Strict JSON only. Strip comments first.