Using JSON Validator: practical guide
Validate before you send or save
Use the validator to confirm a block of text is valid JSON before you put it in a config file, an API request or a database. It tells you whether the structure parses, and where it stopped if it does not.
Reading the error position
The reported position is where the parser noticed the problem, which is often just after the real mistake. Look backwards from there for a missing comma, a stray trailing comma, an unclosed quote or bracket, or single quotes where double quotes are required.
- Valid JSON only allows double-quoted strings and keys.
- Comments and trailing commas are not allowed.
- Valid structure does not mean the data fits your application's schema.