Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

83
Views
JavaScript fetch oddly adds a zero at the end of JSON field response

While developing a front end for an API (using React.js), my response is oddly being malformed.

users.jsx:

fetch("http://localhost:8080/users")
    .then((res) => {return res.json()})
    .then((result) => {
        console.log(result["id"])
// Should be something like 159985870458322944 but returns 159985870458322940 instead
// (the last digit has somehow turned from a 4 to a 0)
});

Checking the network tab in Chrome Devtools, the raw response shows a proper value for that key:

{
...
"id": 159985870458322944
...
}

What am I missing here?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!