470,811 Members | 1,144 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,811 developers. It's quick & easy.

JSON adding to my objects

I've just added JSON handling to my work and the code from json.org to
create/parse the strings. The "compressed" version of the code starts:

if(!Object.prototype.toJSONString){Array...

This is working fine expect it appears to be messing with my objects. I
regularly iterate through my objects but now there's a new property
(toJSONString) that's buggering things up.

Admitedly I don't understand the JSON code but can I just delete the
property from each of my objects?

Andrew Poulos
Sep 9 '07 #1
1 1473
Andrew Poulos wrote:
I've just added JSON handling to my work and the code from json.org to
create/parse the strings. The "compressed" version of the code starts:

if(!Object.prototype.toJSONString){Array...

This is working fine expect it appears to be messing with my objects. I
regularly iterate through my objects but now there's a new property
(toJSONString) that's buggering things up.
See http://yuiblog.com/blog/2006/09/26/for-in-intrigue/
Sep 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by George Jempty | last post: by
16 posts views Thread by G Matthew J | last post: by
2 posts views Thread by Kevin Newman | last post: by
1 post views Thread by Red Daly | last post: by
6 posts views Thread by dd | last post: by
23 posts views Thread by dhtmlkitchen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.