JSON Duplicate Keys

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Jun 6 08:29:46 PDT 2013

On Jun 6, 2013, at 8:21 AM, gaz Heyes wrote:

> On 6 June 2013 16:13, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> Some that should be pointed out is that one reason JSON needs to accept duplicate field names is that some people currently use them to add  comments to JSON datasets:
> {
>  "//": "This is a comment about my data",
>  "//":  "that takes more than one line",
>  "field1" : 1,
>  "field2" : 2
> }
> That is totally stupid. IMO the JSON spec should support comments like // and /**/ and also support single quotes for string values. It's JavaScript for christ sake. It makes no sense to invent and support this crappy syntax. 

No it's not JavaScript!  It a file format for storing and interchanging data. Preserving existing data is a key requirement.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130606/0ad4fe6c/attachment.html>

More information about the es-discuss mailing list