JSONLint Partners
Check out their products!About JSONLint?
JSONLint is a validator and reformatter for JSON, a lightweight data-interchange format. Copy and paste, directly type, or input a URL in the editor above and let JSONLint tidy and validate your messy JSON code.
Tips & Tricks
"json"
parameter. Here's an example URL to test.?reformat=compress
to the URL.Common Errors
'STRING'
- You probably have an extra comma at the end of your collection. Something like { "a": "b", }
'STRING'
, 'NUMBER'
, 'NULL'
, 'TRUE'
, 'FALSE'
, '{'
, '['
- You probably have an extra comma at the end of your list. Something like: ["a", "b", ]
{ "key": "value" }
Different Results
If you use a Windows computer you may end up with different results. This is possibly due to the way Windows handles newlines. Essentially, if you have just newline characters (\n)
in your JSON and paste it into JSONLint from a Windows computer, it may validate it as valid erroneously since Windows may need a carriage return (\r)
as well to detect newlines properly. As a solution, either use direct URL input, or make sure your content's newlines match the architecture your system expects!