jsonp-api icon indicating copy to clipboard operation
jsonp-api copied to clipboard

getLong and isType for JsonObject

Open RealYusufIsmail opened this issue 3 years ago • 1 comments

I am wondering if it is possible to add a getLong() method in the JsonObject interface and is also is possible to add is type which check if the specified Object/Array/etc is given

RealYusufIsmail avatar Mar 28 '22 15:03 RealYusufIsmail

You can obtain the long value in this way:

JsonObject.getJsonNumber(name).longValue()

jbescos avatar Jul 21 '22 09:07 jbescos