I have an API returning some JSON and one of the fields is a big integer:
{
"id": 828845277259899344,
"name": "Joe",
"email": "joe@example.com",
...
}
When getting the data with await response.json()
, the id is being converted to 828845277259899400. I understand JS can't handle integers that big but I was hoping I could get it as a string instead. Tried to find my way using BigInt but still not there. I couldn't find the answer in similar question here either.