Validate JSON - SwiftBox

Check if JSON is valid and well-formed.

How to use

  1. Paste the JSON to check.
  2. See whether it validates and read any error message.
  3. Fix the issue and validate again.

Common use cases

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.