callumlocke / json-formatter

Makes JSON easy to read.
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en
BSD 3-Clause "New" or "Revised" License
3.76k stars 859 forks source link

JSON Formatter fail to format 64 bit integers #248

Closed XXiemeciel closed 1 year ago

XXiemeciel commented 1 year ago

Hi,

There is a bug in the formatter that is you have 64 bit integers the raw and formatted values are different

2023-05-18_14-45-40

LouissXI commented 1 year ago

Hi,

Just found it by myself too. I'll try to dig into the source code to try to find a fix to it.

callumlocke commented 1 year ago

See https://github.com/callumlocke/json-formatter#why-are-large-numbers-not-displayed-accurately

XXiemeciel commented 1 year ago

Is node-bigint not working for this use case ?

On Fri, Aug 4, 2023, 15:46 Callum Locke @.***> wrote:

See https://github.com/callumlocke/json-formatter#why-are-large-numbers-not-displayed-accurately

— Reply to this email directly, view it on GitHub https://github.com/callumlocke/json-formatter/issues/248#issuecomment-1666092041, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKHIA6SFPA272T6ELVTTYDXTVGPVANCNFSM6AAAAAAYH36WQY . You are receiving this because you authored the thread.Message ID: @.***>