rudolph-miller / jonathan

JSON encoder and decoder.
http://rudolph-miller.github.io/jonathan/overview.html
164 stars 24 forks source link

Negative number parsing is wrong #50

Closed libre-man closed 6 years ago

libre-man commented 6 years ago

When parsing the string '-0.5' jonathan parses this as '0.5'. This seems to be caused by the fact that integer parsing is used which parses '-0' to '0'.