api-designbackendjavascript
Large JSON integers need a boundary check
Anonymous
Some JSON clients parse numbers as ieee-754 doubles, which cannot represent every integer exactly beyond 2^53 - 1. If an identifier or counter can exceed that, encode it as a string or use a client type with exact integer support. Keep the API contract explicit.
0