Bug in JSON file
Closed this issue · 1 comments
tristanleboss commented
PreScriptum: I discovered this GitHub page after posting the problem on your blog. Feel free to remove my comments there. Sorry ;)
Hello,
I noticed a few bugs in the JSON files (obtained through /file/data-json/*) which render them invalid and unusable:
- For some file, the date is incomplete (missing either year, month and/or day). For these files, the JSON is invalid because there is no value for the “year”, “month” and “day” properties which result, in the code, as this [code]"year": ,[/code]
- It’s missing a coma after the “demozoo” property. In the code, it looks like this [code]"demozoo":""
"youtube":""[/code] - Sometime there is a line break in the “platform” property and it breaks the JSON.
- Sometime “\” (slashes) are not correctly escaped which breaks the JSON.
Non-working examples:
- "demozoo” missing coma: http://www.defacto2.net/file/data-json/9b1c6
- missing “day” value: http://www.defacto2.net/file/data-json/9c26d6
- missing “month” value: http://www.defacto2.net/file/data-json/9e2ac9
- missing “year” value: http://www.defacto2.net/file/data-json/9f1a4
- “platform” line break problem: http://www.defacto2.net/file/data-json/a43986
- “\” escaping problem: (in the “artists” property) http://www.defacto2.net/file/data-json/ad2c8c
Tristan
Deleted user commented
Thanks .. I have fixed those errors and regenerated all the JSONs sitewide. If there are any more validation bugs please let me know.