You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have to consider this architecture logic. A number this big will be sent via the JSON, and someone will read it.
Numbers in JSON are all floats is we refer to the RFC
So, the clients might face the same imprecision with float depending on the clients implementation of the JSON parsing.
While there is a legitimate logic in thinking there is a bug that could be fixed in gjson lib, I would encourage you to reconsider your data structure and use a string to transport such a big number.
As #29 said, gjson is parsing integer to float64
gjson/gjson.go
Lines 68 to 69 in 4d23028
But it's causing a side effect for my use case that accessing by gjson and sjson like this:
Is any way to handle large integer parsing? Really appreciate it.
The text was updated successfully, but these errors were encountered: