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
We have an issue with integer values served by our Rails API and consumed by EmberJS app. They are stored in the DB as bigint and they exceed the maximum numeric value in JavaScript.
Isn't it something that should be handled by this gem?
The text was updated successfully, but these errors were encountered:
I don't think the concept of a maximum numeric value exists in JSON itself. It would be possible to check against some settable limit in the gem, but then do what? Shouldn't javascript promote too large integers to floats anyway?
I have exact same problem. I've tried to solve it by overriding Bignum#to_json method with no luck #254 . The idea was to convert large integers (53+ bits) to string.
nobu
changed the title
Conver integer value exceeding the maximum numeric value in JavaScript to string
Convert integer value exceeding the maximum numeric value in JavaScript to string
Oct 24, 2024
We have an issue with integer values served by our Rails API and consumed by EmberJS app. They are stored in the DB as bigint and they exceed the maximum numeric value in JavaScript.
Isn't it something that should be handled by this gem?
The text was updated successfully, but these errors were encountered: