bramstein / xsltjson

XSLTJSON - Convert XML to JSON using XSLT
http://www.bramstein.com/projects/xsltjson/
308 stars 94 forks source link

JSON.parse invalid number #4

Closed henrypoter closed 11 years ago

henrypoter commented 11 years ago

json will treat .5 as a valid number, but javascript JSON.parse('{"badnumber":.5}') will failed

bramstein commented 11 years ago

As far as I know .5 is not a valid JSON number, it should always be 0.5. Are you saying XSLTJSON generates invalid JSON?

bramstein commented 11 years ago

Thanks! I just fixed this in the latest release.