Skip to content

cannot parse numbers in exponential notation #9

Closed
dominictarr opened this Issue Aug 5, 2012 · 2 comments

2 participants

@dominictarr

looks like you can't parse all valid numbers, example 1e3 aka 1000

https://github.com/Floby/node-json-streams/blob/master/lib/JsonTokenizer.js#L17

@Floby
Owner
Floby commented Aug 5, 2012

Expenential notation seems to work with the native JSON.parse function. So i suppose it should be parsed in here as well.
However it seems hex and octal notations don't work with JSON.parse. Do you know if they should?

@Floby
Owner
Floby commented Aug 5, 2012

So, i took the occasion to finally write some tests case with vows on this project.

@Floby Floby closed this Aug 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.