Ah right, yes that makes perfect sense. What if the date were to be serialized as "new Date(...)"?
For example, var input = new String("{ dob:new Date(1220453756681+0100) }"); var evaluated = input.evalJSON(); var v1 = evaluated.dob.toString(); // v1 ==> "Wed Sep 03 2008 15:55:56 GMT+0100 (GMT Daylight Time)" var v2 = evaluated.dob.getDay(); // v2 ==> 3 Would there be any nasty pitfalls with this approach? Lea Hayes On Sep 11, 7:26 pm, Walter Lee Davis <[EMAIL PROTECTED]> wrote: > On Sep 11, 2008, at 2:02 PM, T.J. Crowder wrote: > > > We probably don't want the JSON deserializer to look at > > every string value and make it a date if it happens to look like > > one... :-) > > Right, cuz then it would be like a phone number on MobileSafari. > > Walter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---