bestiejs / json3

A JSON polyfill. No longer maintained.
https://bestiejs.github.io/json3
Other
1.02k stars 150 forks source link

Are there any known browsers that don't work with json3? #21

Closed e1ven closed 11 years ago

e1ven commented 11 years ago

Are there any browsers or environments that are known to work with json2 (or others) that don't work with json3?

I note that you list the methods which need to be implemented - Are there known instances which don't have these?

ghost commented 11 years ago

Hi @e1ven,

Not to my knowledge—JSON 2's inconsistent cross-browser support (particularly in older versions of Safari and Opera) was actually one of the reasons I created JSON 3. JSON 3 has also been tested in several ancient browsers: the Mozilla suite, Konqueror 3, and Netscape 6. I don't expect anyone to be using them, but it's a good sanity check, especially if I'm going to claim that JSON 3 is "compatible with nearly all JavaScript platforms."

The listed methods exist in all ECMAScript 3 implementations. ES 3 was ratified in December 1999, so I think it's safe to assume their existence. I know IE 5.0 (not 5.5) lacks Array#push and pop, but JSON 3 is only actively tested in IE 6 and higher. I also thought the list would be useful in case devs are using code that overwrites or extends these methods in non-standard ways (though this philosophy has been largely rejected by the JS community).

TL;DR: No, and no. :smiley: