priaonehaha / sprocketcms

Automatically exported from code.google.com/p/sprocketcms
0 stars 0 forks source link

Issue with JSON encoder #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The JSON encoder is bad at encoding dates. It seems to interpret them as a
standard object and encodes them with no properties. The Ajax engine
converts dates to strings before the JSON encoder sees them so normally
it's not a problem, however when the date is inside a javascript object,
the Ajax engine simply passes the object to the JSON encoder to handle, and
it gets left out of the resultant JSON string.

Original issue reported on code.google.com by SnowDe...@gmail.com on 27 Aug 2006 at 10:02

GoogleCodeExporter commented 9 years ago
I might rewrite the client-side JSON encoder. It's the most hideously 
unreadable bit
of code I've ever encountered anyway.

Original comment by SnowDe...@gmail.com on 27 Aug 2006 at 10:05