String json = "{'key':'1.056'}".replace("'", "\"");
final Any any = JsonIterator.deserialize(json);
any.get("key").toDouble();
Throws a JsonException from the JsonIterator class reportError method creating lots of garbage with the string building. This exception is then eaten up and it reverts back to Double.valueOf().
Is there a reason why an exception is thrown if you try and read a long with leading zeros?
Throws a JsonException from the JsonIterator class reportError method creating lots of garbage with the string building. This exception is then eaten up and it reverts back to Double.valueOf().
Is there a reason why an exception is thrown if you try and read a long with leading zeros?