Files
pgadmin4/docs/en_US
Dave Page 50f95f0fcb Preserve jsonb number representation in the JSON editor (#9854) (#10074)
The Query Tool's JSON cell editor pretty-printed jsonb values by parsing
and re-stringifying them with json-bignumber. While that preserves big
integers, it normalizes decimals through a JS float, so trailing
fractional zeros are dropped (10.00 -> 10, 3.140 -> 3.14). Because the
reformatted text is what gets written back, opening an unrelated jsonb
document and saving it silently rewrote numbers it never edited - which
can break applications that rely on the canonical jsonb text.

Switch the editor to lossless-json, which preserves the exact numeric
representation (big integers and trailing zeros alike), and pass it to
the underlying vanilla-jsoneditor as its parser so the in-editor format
action and tree/table modes are lossless too. The lossless helpers are
centralized in a small json_utils module with unit tests.

Closes #9854
2026-06-12 22:46:13 +05:30
..
2016-06-07 09:04:58 +01:00
2019-03-08 15:29:05 +00:00
2024-07-02 10:34:30 +05:30
2026-01-05 13:33:45 +05:30
2026-01-05 13:33:45 +05:30
2019-03-08 15:29:05 +00:00
2019-03-08 15:29:05 +00:00
2019-12-05 06:35:57 -05:00
2020-08-18 11:15:24 +01:00
2021-02-22 16:47:16 +05:30
2022-03-14 15:26:54 +00:00
2022-05-09 12:39:29 +05:30
2022-12-14 15:56:05 +05:30
2023-01-16 19:34:33 +05:30
2023-05-03 15:21:01 +05:30
2023-05-29 11:03:39 +05:30
2023-08-16 15:32:17 +05:30
2023-10-17 15:19:40 +05:30
2024-04-09 08:37:41 +05:30
2024-11-07 22:02:18 +05:30
2025-04-23 15:41:43 +05:30
2025-07-23 17:56:15 +05:30
2023-03-28 22:20:14 +05:30
2019-03-08 15:29:05 +00:00