Skip to content

JSON encoder should fail for integer values outside "interop range". #5007

@lovelydinosaur

Description

@lovelydinosaur

It is un-robust to use integer values above (2^53)-1 in JSON.

Where we have model fields corresponding to big integers, we should ensure that the corresponding serializer classes have appropriate maximum values. - Revised.

http://stackoverflow.com/questions/307179/what-is-javascripts-highest-integer-value-that-a-number-can-go-to-without-losin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions