sidorares / json-bigint

JSON.parse/stringify with bigints support
MIT License
790 stars 189 forks source link

Option `storeAsString` does not work with option `alwaysParseAsBig ` #67

Open butterybread opened 2 years ago

butterybread commented 2 years ago

When you have the option alwaysParseAsBig enabled, you expect all numbers to be parsed as Big. When you have the option storeAsString enabled, you expect all Big numbers to be stored as a string.

When enabling both these options:

This does not seem very useful. I would expect the small numbers to also be stored as strings.