JSON Duplicate Keys

gaz Heyes gazheyes at gmail.com
Thu Jun 6 08:21:26 PDT 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130606/fa816bf1/attachment.html>


More information about the es-discuss mailing list