Re: [nodejs] JSON5: modern JSON

2014-03-11 Thread Ryan Dahl
On Tue, Mar 11, 2014 at 1:43 PM, Eric Devine wrote: > Calling it a "javascript object" implies that a function should be a valid > property type. However, this provides an interesting use case for the > Function constructor since it allows the creation of functions without a > closure context. Of

Re: [nodejs] JSON5: modern JSON

2014-03-11 Thread Eric Devine
Calling it a "javascript object" implies that a function should be a valid property type. However, this provides an interesting use case for the Function constructor since it allows the creation of functions without a closure context. Of course, this would severely limit the interoperability with o

Re: [nodejs] JSON5: modern JSON

2014-03-11 Thread Berger Kennedy FOTSO
OHOHOHOH 2014-03-11 17:49 GMT+01:00 Ryan Dahl : > https://github.com/aseemk/json5 >> > > I love this idea! > I'm not sold on the name though. I imagine there will be a need to use a > different filename extension to distinguish it from JSON and .json5 is > annoying long for a filename extension.

Re: [nodejs] JSON5: modern JSON

2014-03-11 Thread Ryan Dahl
> > https://github.com/aseemk/json5 > I love this idea! I'm not sold on the name though. I imagine there will be a need to use a different filename extension to distinguish it from JSON and .json5 is annoying long for a filename extension. What about calling it "javascript object" instead and usin

Re: [nodejs] JSON5: modern JSON

2012-05-28 Thread Axel Kittenberger
Oh great! <3 I really looked for this a few weeks back! see: http://stackoverflow.com/questions/9637517/parsing-relaxed-json-without-eval On Mon, May 28, 2012 at 3:32 AM, Aseem Kishore wrote: > I love JSON, but writing it by hand has always been a pain. > > Needing to (double-)quote keys, not b

Re: [nodejs] JSON5: modern JSON

2012-05-28 Thread Alan Hoffmeister
Awesome idea! Not sure about allowing commas on the last object / key but all the rest are good to go! -- Att, Alan Hoffmeister 2012/5/27 Aseem Kishore > I love JSON, but writing it by hand has always been a pain. > > Needing to (double-)quote keys, not being able to document the data with >

[nodejs] JSON5: modern JSON

2012-05-27 Thread Aseem Kishore
I love JSON, but writing it by hand has always been a pain. Needing to (double-)quote keys, not being able to document the data with comments, and not having support for trailing commas or multi-line strings -- all of which are available and work perfectly well on modern ES5 engines, including Nod