3 ms·
If anyone else was confused, a "polyfill" is a pure javascript implementation of behavior the platform doesn't natively provide, and calling it "JSON 3" is not
by prodigal_erik 15y ago
If anyone else was confused, a "polyfill" is a pure javascript implementation of behavior the platform doesn't natively provide, and calling it "JSON 3" is not trying to claim that the JSON grammar has been revised (that's pretty much impossible); it's just the unfortunately generic name they chose for this implementation.
- benatkin 15y agoI understood the JSON3 name right away. Douglas Crockford's best-known implementation is called JSON2; this aims to be a successor to it. I agree that it shouldn't be called a polyfill.
- jdd 15y ago@prodigal_erik @benatkin It is a JS polyfill/shim/fallback for older browsers like IE 6 and 7 but also fixes/fills in gaps in support/consistency with modern browsers that have buggy implementations. The use of the word "modern" in the description is to suggest it is more up-to-date than Crockford's aging/stale json2.js.