Fetch request integers change after applying .json()

Viewed 8

Can someone explain what is happening here?

I used fetch and noticed that converting my response to json returns different results.

I simplified the problem down to this. Try this on any JSON Pretty Print website online.

Input: [{"id":65424410702513845}]

Output: [{"id":65424410702513850}]

The output is different. You can try it yourself. Seems like a mystery to me. If someone can solve this I'd be glad.

enter image description here

0 Answers
Related