[GH-ISSUE #3919] [bug]: Prettify Big Number Loss of accuracy #1373

Closed
opened 2026-03-16 20:01:36 +03:00 by kerem · 0 comments
Owner

Originally created by @8Q757 on GitHub (Mar 21, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3919

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

Originally created by @8Q757 on GitHub (Mar 21, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3919 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I use body with application/json,the body such as ```json { "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 ```json { "id": 485091432142801408 } ``` 4. Click _Prettify_ button 5. The jsonbody will be loss of accuracy ### Environment Release ### Version Local
kerem 2026-03-16 20:01:36 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1373
No description provided.