Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getLong and isType for JsonObject #369

Open
RealYusufIsmail opened this issue Mar 28, 2022 · 1 comment
Open

getLong and isType for JsonObject #369

RealYusufIsmail opened this issue Mar 28, 2022 · 1 comment

Comments

@RealYusufIsmail
Copy link

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

@jbescos
Copy link
Member

jbescos commented Jul 21, 2022

You can obtain the long value in this way:

JsonObject.getJsonNumber(name).longValue()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants