ralfstx / minimal-json

A fast and small JSON parser and writer for Java
MIT License
736 stars 185 forks source link

ArrayIndexOutOfBoundsException when call getString() on JsonObject #97

Closed romweinstein closed 6 years ago

romweinstein commented 6 years ago

Hi, In case a JsonObject contains more than 127 fields when removing a filed and than get a field sometimes throws IndexOutOfBoundsException

example.txt

Run the code on example : JsonObject jsonObject = Json.parse(s).asObject(); jsonObject.remove("x_0"); jsonObject.getString("x_7",null);

ralfstx commented 6 years ago

Good catch, thanks for the but report @romweinstein!