unjs / destr

🚀 Faster, secure and convenient alternative for JSON.parse
MIT License
1.03k stars 14 forks source link

bigint support #73

Open lopo12123 opened 1 year ago

lopo12123 commented 1 year ago

Describe the feature

Many of our json data sources come from the backend, and there is an obvious need to convert the long type numbers from the backend into strings for reception (otherwise the precision will be lost), this is json-big (or other Some packages) do, it would be great if this could be supported as a built-in configuration item!

Anyway, json+ts is really nice!

Additional information