JSON Duplicate Keys
allen at wirfs-brock.com
Thu Jun 6 09:00:32 PDT 2013
On Jun 6, 2013, at 8:45 AM, Anne van Kesteren wrote:
> On Thu, Jun 6, 2013 at 4:29 PM, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
>> data. Preserving existing data is a key requirement.
> Nevertheless, enhancing it with sensible comment syntax would be
> great. But as you said, there's a different list for that.
From an ECMAScript perspective, the way to get a JSON comment syntax in place would be to first added it to JSON.parse in the ES spec. and get it deployed in browsers. Starting by adding it to the JSON RFC is just going to suggest to people that they can use use comments in their JSON datasets when in fact the most widely deployed browser-based parsers won't accept them. Of course, getting support in parsers hosted by other languages is a whole different matter.
More information about the es-discuss