RFC7159§10 says "a JSON generator produces JSON text" but neglects to specify how, soooo JSON.stringify = function() { return "null"; }
-
-
Replying to @qntm
Hilariously, RFC7159§9 says "A JSON parser MAY accept non-JSON forms", so I can also do this JSON.parse = function() { return null; }
1 reply 19 retweets 17 likes -
Replying to @qntm
I'll tell you what, this two-tweet standards-compliant JSON stack demolishes native implementations in performance tests
3 replies 13 retweets 39 likes -
Replying to @qntm
* Small code size (<1kB before minification) * Can serialise arbitrary JavaScript values including functions and cyclical objects
3 replies 3 retweets 7 likes -
-
Replying to @qntm
ECMA-262's specification of JSON.parse and JSON.stringify is a little more detailed so I can't claim this is a drop-in replacement, ah well
1 reply 0 retweets 1 like -
npm install fastjson https://www.npmjs.com/package/fastjson … https://github.com/ferno/fastjson This joke is now dead
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.