users@jsonp.java.net

Re: Number parsing methods on JsonParser

From: Philippe Marschall <kustos_at_gmx.net>
Date: Sun, 06 Sep 2015 19:43:18 +0200

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