JSON Duplicate Keys

Allen Wirfs-Brock 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:
>> No it's not JavaScript!  It a file format for storing and interchanging
>> 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.

Allen


More information about the es-discuss mailing list