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

Support Long/BigInt parsing #21

Closed
matthieus opened this issue Sep 11, 2014 · 2 comments
Closed

Support Long/BigInt parsing #21

matthieus opened this issue Sep 11, 2014 · 2 comments

Comments

@matthieus
Copy link

I might be doing something wrong:

val json = dijon.parse(jsonString)
json.timestamp.as[Long]
@pathikrit
Copy link
Collaborator

You only use the following types

This bug comes since Json spec says nothing about the max limit on integers but Scala has 32-bit and 64-bit integer types only. So, if you do .as[Int] or .as[Double], it will work. I will keep this issue open to remind me to support .as[BigInteger]

@pathikrit pathikrit changed the title .as[Long] doesn't compile Support Long/BigInt parsing Sep 11, 2014
@abadyan
Copy link

abadyan commented Sep 23, 2014

+1 This is missing

pathikrit added a commit that referenced this issue Oct 12, 2014
This issue was closed.
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

3 participants