more JSON spec questions

Oliver Hunt oliver at apple.com
Wed Aug 26 15:52:20 PDT 2009


> Quick word about the test suite: it's current home is http://testsuites.opera.com/JSON/ 
>  where you can have a look at the README, load runner.htm to run all  
> tests (Warning: if you do that in IE8 something makes it eat all  
> your memory and make the PC entirely unusable!) or browse through  
> folders to individual tests. Hope it's useful to all you  
> implementers out there. Feedback welcome :)

The spec only defines Date.prototype.toJSON now -- so the tests for  
toJSON on String, Boolean and Number are wrong (technically they  
should not be present, and stringification should work if they aren't).

Octal values are completely specified -- the lexer defined in ES5 and json.org 
  disallows a leading 0 on any value not between -1 and 1.

You should also ensure comments are not allowed in the content.

--Oliver

>
> -- 
> Hallvord R. M. Steen, Core Tester, Opera Software
> http://www.opera.com http://my.opera.com/hallvors/
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss



More information about the es-discuss mailing list