On Tuesday, 26 August 2014 at 14:40:02 UTC, Don wrote:
This is the difference: if you get NaN or Infinity, there's probably a straightforward bug in the Javascript code, but your D code is fine. Any other kind of JSON parsing error means you've got a garbage string that isn't JSON at all. They are very different errors.

I don't care either way, but JSON.stringify() has the following support:

IE8 and up
Firefox 3.5 and up
Safari 4 and up
Chrome

So not using it is very much legacy…

Reply via email to