FAQ
Want to make nifty tools like this during work hours?
Check Us Out and Say Hello.

Results Loading

FAQ


What is JSONLint?

JSONLint is a validator and reformatter for JSON, a lightweight data-interchange format.

Why 'Lint'?

Essentially, I'm just riding on JSLint's coattails. The name 'lint' was originally used to find problems in C source files. It's not really valid here because JSON is just a protocol. Shameless? You bet!

Why does it reformat my JSON?

Because your code is ugly! Trust me on this one. What's that you say? It's not? Ok, well then here's JSON Lint without the reformatter.

What are some common errors?
syntax error, unexpected '}', expecting TSTRING at line X
You probably have an extra comma at the end of your collection. Something like: { "a": "b", }
syntax error, unexpected ']' at line X
You probably have an extra comma at the end of your list. Something like: [ "a", "b", ]
syntax error, unexpected TINVALID, expecting TSTRING or '}' at line X
You may have not enclosed your collection keys in quotes. Proper format for a collection is: { "key": "value" }

Be sure to follow JSON's syntax properly. For example, always use double quotes, always quotify your keys, and remove all callback functions.

Who made this?

I'm Chris Dary, just one of the kids at the Arc90 Lab. Much is owed to the community (this uses Ben Spencer's JSON parser, for example).

I've got feedback!
Great! Feel free to email me at chrisd@arc90.com