Yes:
Don't be confused with json on the demo, it's full-featured json5 parser underneath (https://github.com/rlidwka/jju#jjutokenize-function).
11.03.2014, 16:38, "Samuel Paul" <[email protected]>:
--Hi Aseem,Is it possible to get the parsed tree of the json object having location information(line and character) for each property, value, comment,etc?ThanksSam
On Monday, 28 May 2012 08:02:23 UTC+5:30, Aseem Kishore wrote: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 Node.After stewing on this for over a year, I bit the bullet today and made this idea a reality: a "JSON5" parser that supports these and other ES5 features in JSON.It's built off of Douglas Crockford's own eval()-free JSON parser, and it's available now on npm as "json5".I'd love to get your guys' thoughts and feedback on this. And it'd be a dream if package.json files could be written in this looser syntax one day. =)Cheers,Aseem--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
