Hacker Zone
tools made for hackerspaces


Results Loading


                        
                                            
                        

FAQ


What is OpenSpaceLint?

OpenSpaceLint is a validator and reformatter for JSON and checks if the spaceapi was correctly implemented.

What are some common errors?
Expecting 'STRING'
You probably have an extra comma at the end of your collection. Something like: { "a": "b", }
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
You probably have an extra comma at the end of your list. Something like: [ "a", "b", ]
You also 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.

A friend and I pasted the same JSON in and got different results. Wat do?

If you and your friend are on different systems (Win/Unix), this is possible due to the way windows handles newlines. Essentially, if you have just newline characters ( ) in your JSON and paste it into JSONLint from a windows machine, it can validate it as valid erroneously since Windows may need a carriage return ( ) as well to detect newlines properly.

The solution: Either use direct URL input, or make sure your content's newlines match the architecture your system expects!