Skip to content

Why are 64bit integers json serialised as strings? #223

Answered by tomas-abrahamsson
mira01 asked this question in Q&A
Discussion options

You must be logged in to vote

The Json mapping section in the langage guide says that the int64 types are to be represented in JSON as a string: "JSON value will be a decimal string." I suppose this is to not lose accuracy when large values are represented as floats.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mira01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants