Skip to content

Commit b44c3cb

Browse files
committed
RI-6339 scientific notations fix
1 parent 04f32b9 commit b44c3cb

File tree

1 file changed

+5
-1
lines changed
  • redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/utils

1 file changed

+5
-1
lines changed

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/utils/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ export const isValidKey = (key: string): boolean => /^"([^"\\]|\\.)*"$/.test(key
6565

6666
const JSONParser = JSONBigInt({
6767
useNativeBigInt: true,
68-
strict: false
68+
strict: false,
69+
// Parse all numbers as BigInt if they exceed safe integer
70+
alwaysParseAsBig: false,
71+
// This option helps with scientific notation
72+
storeAsString: true
6973
})
7074

7175
export const parseValue = (value: any, type?: string): any => {

0 commit comments

Comments
 (0)