esthervidal78 / json-smart

Automatically exported from code.google.com/p/json-smart
0 stars 0 forks source link

parsing a single entity results in exception #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
parsing a string or stream with only "123":

java.lang.ArrayIndexOutOfBoundsException: -1
    at net.minidev.json.parser.JSONStreamParser.readNumber(JSONStreamParser.java:247)
    at net.minidev.json.parser.JSONStreamParser.readMain(JSONStreamParser.java:221)
    at net.minidev.json.parser.JSONStreamParser.parse(JSONStreamParser.java:75)
    at net.minidev.json.parser.JSONStreamParser.parse(JSONStreamParser.java:50)
    at net.minidev.json.parser.JSONParser.parse(JSONParser.java:147)

The error is different for a string than for a stream.

It should return an integer 123

json-smart 1.0.9 maven

Please provide any additional information below.

Original issue reported on code.google.com by matthias...@gmail.com on 23 Oct 2011 at 2:54

GoogleCodeExporter commented 8 years ago
Fixed

Original comment by uriel.chemouni on 24 Oct 2011 at 10:25