Very cool and useful, thanks!

FWIW, since JSON5 is built off of Douglas Crockford's json_parse.js, its
parse() function also supports a reviver argument -- so this'll work w/
JSON5 too. =)

Aseem

On Tue, May 29, 2012 at 1:25 PM, Marco Rogers <marco.rog...@gmail.com>wrote:

> FYI, not related to JSON5, but a nice simple solution for reviving dates
> that were serialized as ISO 8601.
>
> https://gist.github.com/2504336#gistcomment-281565
>
> :Marco
>
>
> On Monday, May 28, 2012 9:23:29 PM UTC-7, Aseem Kishore wrote:
>>
>> Someone else made the same request:
>>
>> https://github.com/aseemk/**json5/issues/3<https://github.com/aseemk/json5/issues/3>
>>
>> It seems that the right thing to do is what native JSON already does (at
>> least in V8) -- serialize to an ISO 8601 string. Let me know if that's not
>> right.
>>
>> Aseem
>>
>> On Mon, May 28, 2012 at 9:35 PM, Arunoda Susiripala <
>> arunoda.susirip...@gmail.com> wrote:
>>
>>> Why do you need serialization for Date.
>>> Just save the timestamp.
>>>
>>>
>>> On Tue, May 29, 2012 at 6:54 AM, jason.桂林 <guil...@gmail.com> wrote:
>>>
>>>> I hope JSON can support Date type serialization, but it not, now I hope
>>>> JSON5 can do this Date serialization.
>>>
>>>   --
> 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
>

-- 
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

Reply via email to