[whatwg] JSON encoding

Lachlan Hunt lachlan.hunt at lachy.id.au
Fri Nov 3 10:16:42 PST 2006


Douglas Crockford wrote:
>> I think the hazard is very real and very serious.
>> I don't see any additional expressiveness enabled by toJSONString.
> 
> This is a convenience issue. Having toJSONString as a builtin is a 
> convenience, removing the need to load json.js.

How is toJSONString() any different from toSource()?

http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object:toSource

-- 
Lachlan Hunt
http://lachy.id.au/



More information about the whatwg mailing list