JSON: Difference between revisions
Content deleted Content added
→{{header|Groovy}}: Noted extra comma. |
jsonlint also accepts invalid syntax. |
||
Line 2: | Line 2: | ||
Load a [[wp:JSON|JSON]] string into a data structure. Also create a new data structure and serialize it into JSON. |
Load a [[wp:JSON|JSON]] string into a data structure. Also create a new data structure and serialize it into JSON. |
||
Use objects and arrays (as appropriate for your language) and make sure your JSON is valid (http://www.jsonlint.com/). |
Use objects and arrays (as appropriate for your language) and make sure your JSON is valid (http://www.jsonlint.com/). |
||
However, beware that this web application accepts extra commas, so [1,2,3,] validates as correct, which is at odds with the grammar given at json.org [http://www.json.org/fatfree.html]. |
|||
=={{header|C++}}== |
=={{header|C++}}== |