d/javascriptAahmadAug 11, 2026
How do you handle BigInt values in APIs that only speak JSON?

JSON.stringify throws on BigInt, and parsing decimal strings is lossy. I've seen libraries that serialize BigInts as tagged strings. What's the least surprising convention for cross-language APIs?

21
0 comments

Comments (0)