mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #2166] [bug]: Large numbers are wrong/rounded in JSON response view #733
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#733
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arm32x on GitHub (Mar 15, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2166
Is there an existing issue for this?
Current behavior
When JSON data containing large numbers is shown in the JSON response view, the numbers are incorrect (rounded).
JSON sent by server:
Shown in JSON view in Hoppscotch:
What is expected to be shown:
Steps to reproduce
Environment
Production
Version
Cloud
@liyasthomas commented on GitHub (Mar 15, 2022):
Seems like JavaScript is rounding off large numbers in
JSON.parse()andJSON.stringify()operations. Guess it'd be better to use any libs like lossless-json on responses.cc: @AndrewBastin