JSON is purely a data exchange format, like XML. There is nothing about object prototypes or methods or anything else in the JSON specification. You'd need a layer on top of JSON to do what you want.
-bob On 1/7/07, mwaschkowski <[EMAIL PROTECTED]> wrote:
Hi, Well, I'm expecting JSON to serialize my javascript objects (in this case, inside of an array) so that I can deserialize them back into true javascipts objects (using the evalJSON method). So I'm expecting to see function references as in: "method": somewhere in the JSON string as shown here: http://www.json.org/js.html. And, of course, I want to call methods on returned objects, but can't... That being said, there is a good chance that I'm confused as today is the first time I've tried to use JSON. I found some tutorials, but they all were focused on serializing some html data, not directly tied to Javascript objects... Thanks for any help! Mark >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" 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/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
