Carl Shimer wrote:
> Hi,
>
> Is there a JSON serializer for prototype or is anyone working on one?  I am
> looking for something equivalent to MochiKit's JSON support.  The serializer
> from json.org mucks with the prototype of object, array, etc so trips up
> anyone who writes code using the native iteration support, e.g for (var foo
> in bar).

You could ignore any property called "toJSONString", or more
generically any property whose value is a function.  json.js messes
with all basic javascript objects - Array, Boolean, Date, Number,
Object and String.

Prototype 1.4 messes with Object and Array, Prototype 1.5 messes with
Array, so your problems don't end with fixing json.js.


-- 
Fred


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to