any significant degradation in json parsing-performance would impact the world wide web. can anyone knowledgeable on js engines comment on parsing performance? On Jul 11, 2017 15:39, "Dong Nguyen" <ndaid...@gmail.com> wrote:
> @Jordan: I think that's just work-around, not official feature. > > Dong > > On Tue, Jul 11, 2017 at 12:31 PM, Jordan Harband <ljh...@gmail.com> wrote: > >> JSON already has comments: >> >> ```json >> { >> "foo": "the 'foo' field is for putting important stuff!", >> "foo": "the real value for 'foo'" >> } >> ``` >> >> On Mon, Jul 10, 2017 at 10:16 PM, Don Griffin <d...@sencha.com> wrote: >> >>> Seems like whitespace stripping is more of a serialization concern... >>> and hence comments are moot. >>> >>> Where comments are needed (and single line ones are handy) is human >>> edited JSON and also not likely to be stripped. >>> >>> Just my $2e-02 >>> >>> Best, >>> Don >>> -- >>> Don Griffin >>> Sr Director of Engineering >>> Sencha, Inc. >>> https://www.sencha.com/ >>> >>> On Tue, Jul 11, 2017 at 12:13 AM, Ryan Birmingham < >>> rainventi...@gmail.com> wrote: >>> >>>> I believe that that's a reasonable solution, Sebastian. >>>> >>>> -Ryan Birmingham >>>> >>>> On 11 July 2017 at 01:12, Sebastian Malton <sebast...@malton.name> >>>> wrote: >>>> >>>>> If that is a concern then allow C-style block comments or some other >>>>> style of block comments >>>>> >>>>> Sebastian >>>>> >>>>> *From:* rainventi...@gmail.com >>>>> *Sent:* July 11, 2017 1:04 AM >>>>> *To:* ndaid...@gmail.com >>>>> *Cc:* es-discuss@mozilla.org >>>>> *Subject:* Re: JSON5 >>>>> >>>>> My concern with single-lined comments is that json is often whitespace >>>>> removed. >>>>> >>>>> -Ryan Birmingham >>>>> >>>>> On 11 July 2017 at 00:48, Dong Nguyen <ndaid...@gmail.com> wrote: >>>>> >>>>>> Personally, I appreciate this idea. That's exactly how JSON should >>>>>> work. Sometimes I feel bad with current JSON specs: no comment, no >>>>>> trailing >>>>>> commas, double quotes, etc. >>>>>> >>>>>> Regards, >>>>>> Dong >>>>>> >>>>>> On Tue, Jul 11, 2017 at 11:14 AM, J Decker <d3c...@gmail.com> wrote: >>>>>> >>>>>>> Since JSON is apparently part of the standard now, can JSON5 maybe >>>>>>> be considered for addition? It's a very slight change, and simplifies >>>>>>> conversions. >>>>>>> >>>>>>> >>>>>>> Why does JSON have quoted field names anyway (which I could >>>>>>> understand if they included spaced). >>>>>>> >>>>>>> I searched archives and only came up with this result.... >>>>>>> >>>>>>> https://mail.mozilla.org/pipermail/es-discuss/2012-August/02 >>>>>>> 4479.html >>>>>>> >>>>>>> >>>>>>> https://github.com/json5/json5 >>>>>>> >>>>>>> https://github.com/json5/json5/blob/master/lib/json5.js >>>>>>> >>>>>>> (although I would like to see the keyword 'undefined' also allowed >>>>>>> as a value) which is just an 8 line addition. >>>>>>> >>>>>>> Comments in JSON? Wonderful! >>>>>>> Unquoted field names? Wonderful! >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> es-discuss mailing list >>>>>>> es-discuss@mozilla.org >>>>>>> https://mail.mozilla.org/listinfo/es-discuss >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Dong Nguyen at* Green Global <http://greenglobal.vn/>* >>>>>> >>>>>> *tweet* me <https://twitter.com/ndaidong> >>>>>> *plus* me <https://www.google.com/+DongNguyenbellajs> >>>>>> *git* me <https://github.com/dongnd> >>>>>> >>>>>> _______________________________________________ >>>>>> es-discuss mailing list >>>>>> es-discuss@mozilla.org >>>>>> https://mail.mozilla.org/listinfo/es-discuss >>>>>> >>>>>> >>>>> >>>> >>>> _______________________________________________ >>>> es-discuss mailing list >>>> es-discuss@mozilla.org >>>> https://mail.mozilla.org/listinfo/es-discuss >>>> >>>> >>> >>> _______________________________________________ >>> es-discuss mailing list >>> es-discuss@mozilla.org >>> https://mail.mozilla.org/listinfo/es-discuss >>> >>> >> >> _______________________________________________ >> es-discuss mailing list >> es-discuss@mozilla.org >> https://mail.mozilla.org/listinfo/es-discuss >> >> > > > -- > Dong Nguyen at* Green Global <http://greenglobal.vn/>* > > *tweet* me <https://twitter.com/ndaidong> > *plus* me <https://www.google.com/+DongNguyenbellajs> > *git* me <https://github.com/dongnd> > > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss