hoppscotch / hoppscotch

Open source API development ecosystem - https://hoppscotch.io (open-source alternative to Postman, Insomnia)

Home Page:https://hoppscotch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: Prettify Big Number Loss of accuracy

8Q757 opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I use body with application/json,the body such as

{
  "id": 485091432142801408
}

and when I click Prettify button, the id 485091432142801408 changed to 485091432142801400

Steps to reproduce

  1. Add a Request
  2. Switch to Body And select application/json content type
  3. paste a json example include big number such as
{
  "id": 485091432142801408
}
  1. Click Prettify button
  2. The jsonbody will be loss of accuracy

Environment

Release

Version

Local