[GH-ISSUE #4083] [bug]: When Json is beautified, the precision of long integer values ​​is lost #1456

Closed
opened 2026-03-16 20:23:47 +03:00 by kerem · 1 comment
Owner

Originally created by @xiangwenx on GitHub (May 23, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4083

Originally assigned to: @nivedin on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When Json is beautified, the precision of long integer values ​​is lost.
It seems to be caused by the accuracy problem of the front-end script.

However, using double quotes can avoid this problem, but it will be troublesome when the JSON content is large.

Steps to reproduce

image

Environment

Production

Version

Local

Originally created by @xiangwenx on GitHub (May 23, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4083 Originally assigned to: @nivedin on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When Json is beautified, the precision of long integer values ​​is lost. It seems to be caused by the accuracy problem of the front-end script. However, using double quotes can avoid this problem, but it will be troublesome when the JSON content is large. ### Steps to reproduce ![image](https://github.com/hoppscotch/hoppscotch/assets/56824497/045db99f-b91b-4ae6-808a-ffb1e6eab824) ### Environment Production ### Version Local
kerem 2026-03-16 20:23:47 +03:00
Author
Owner

@liyasthomas commented on GitHub (May 23, 2024):

Can't we use lossless-json for beautify here? @nivedin can you pick this up?

<!-- gh-comment-id:2126154808 --> @liyasthomas commented on GitHub (May 23, 2024): Can't we use lossless-json for beautify here? @nivedin can you pick this up?
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#1456
No description provided.