Step-by-step
- Run the JSON through a validator.
- Start at the reported error position.
- Check the nearest quotation marks and commas.
- Match every opening brace or bracket with its closing character.
- Validate the corrected JSON again.
Check quotation marks
JSON strings and property names use double quotes. Smart quotes copied from formatted documents can also cause problems.
Check commas
Object members and array items are separated by commas, but the final member normally does not have a trailing comma.
Check nesting
For deeply nested data, matching opening and closing braces and brackets is easier when the JSON is formatted before you inspect it.
Finish the task with DevUtilityKits
Use the relevant online utility, check the result, and continue with your development workflow.
Format and validate JSON →