Now JS has problems with JSON.stringify and JSON.parse methods for bigInt (de)serializing.
Example: back-end get method return { value: ‘1128736178236718263781672863781’ }
At client i can parse this to: { value: ‘1128736178236718263781672863781’ } // parse big int as String Or parse this to: { value: 1128736178236718263781672863781n } // parse big int as BigInt type
I want to work with:
- as user: 1128736178236718263781672863781
(with number highlighting, without n symbol) - as developer: 1128736178236718263781672863781n
(with typeof digit === ‘bigint’)