On 31.08.2015 20:04, Kin-man Chung wrote:
> If you are happy with getting a JsonNumber from JsonParser, why can't
> you get a JsonNumber first and then use JsonNUmber's methods?
That would be an option. I guess the JsonNUmber allocation pales in
comparison the the String allocation for the key.
> By "have the methods from JsonNumber directly on JsonParser", do you
> mean adding bigDecimalValue, bigIntergerValue, doubleValue etc methods
> to JsonParser?
Yes.
> That would really bloat the API.
Yes.
Cheers
Philippe