On Mar 8, 2012, at 6:30 PM, chrismcv wrote: > Hi, > I would like JSON.parse() to parse strings that are dates (from > date.toJSON()) back into date objects. > > https://github.com/kriszyp/commonjs-utils seems to do it. > > Are there any others, and is this the best one to use?
http://github.com/xk/JASON does that, and much more :-) And I think JSON.parse(test, reviverFunction), JSON.stringify(value, replacerFunction) can do it too, if you provide ad-hoc replacer/reviver functions. -- Jorge. -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en