Lovelyxredxpanda / json-simple

Automatically exported from code.google.com/p/json-simple
Apache License 2.0
0 stars 0 forks source link

.parse method does not work on numeric values starting with a decimal #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a json file to parse with a float value in it (example: .5
2. Try to parse the data with this library

What is the expected output? What do you see instead?
Expect the file to be parsed, instead it throws an exception on the character 
'.'

What version of the product are you using? On what operating system?
1.1 on WinXP

Please provide any additional information below.

Original issue reported on code.google.com by ReimiusE...@gmail.com on 16 Jul 2010 at 3:54

GoogleCodeExporter commented 9 years ago
.5 is malformed according to JSON spec:
http://www.ietf.org/rfc/rfc4627.txt

Original comment by fangyid...@gmail.com on 16 Jul 2010 at 4:26