469,272 Members | 1,581 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

JSON libraries (stringifier/parser) ?

I'm interested in finding some JSON libraries for javascript that
contain a stringifier and/or parser. I've been using what appears to
be the reference implementation from json.org (written by Douglas
Crockford?), but I'm running into two problems:

(1) The lack of support for the hasOwnProperty method in Safari

(2) Odd, intermittent errors in Gecko browsers, something to the
effect of "llegal operation on WrappedNative prototype object."

If anyone's familiar with other libraries, or with ideas for working
with these issues in using the json.org library, I'd love to hear
about them. Thanks!

Mar 27 '07 #1
1 1646
On Mar 27, 12:36 pm, "Weston" <notsew-
reversePreceedingAndRemoveT...@canncentral.orgwrot e:
I'm interested in finding some JSON libraries...
Well, to answer my own question, I was able to find at least one
standalone JSON library from Thomas Frank that doesn't seem to depend
on the hasOwnProperty method and therefore works with Safari:

http://www.thomasfrank.se/json_stringify_revisited.html

It also appears to skirt whatever was triggering the "Illegal
operation on WrappedNative prototype object" error in the Moz/Gecko
browsers.

Mar 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by George Jempty | last post: by
16 posts views Thread by G Matthew J | last post: by
20 posts views Thread by Luke Matuszewski | last post: by
4 posts views Thread by James Black | last post: by
2 posts views Thread by paulfe4 | last post: by
5 posts views Thread by Gerry Vandermaesen | last post: by
1 post views Thread by Red Daly | last post: by
23 posts views Thread by dhtmlkitchen | last post: by
3 posts views Thread by belred | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.