MediaWiki uses a more relaxed form of JSON that permits both // style comments and unneeded trailing commas. But codeeditor that we use to edit that json shows error on the first comment or comma, and does not show any real errors. This is especially evident when designing a new graph in https://en.wikipedia.org/wiki/Special:GraphSandbox
Description
Description
Related Objects
Related Objects
Event Timeline
Comment Actions
Automatically fixing missing and trailing commas when the user saves the page is really simple. Please keep in mind that beginners edit the Data pages manually and can easily make mistakes. The error message "Syntax error" is not very informative.
Comment Actions
Since JSON syntax highlighting is now using CodeMirror on WMF sites, this task is also relevant to CodeMirror.