@muirglacier/jellyfish-json
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

@muirglacier/jellyfish-json

JellyfishJSON allows parsing of JSON with 'lossless', 'bignumber' and 'number' numeric precision.

  • 'lossless' uses LosslessJSON that parses numeric values as LosslessNumber. With LosslessNumber, one can perform regular numeric operations, and it will throw an error when this would result in losing information.
  • 'bignumber' parse all numeric values as 'BigNumber' using bignumber.js library.
  • 'number' parse all numeric values as 'Number' and precision will be loss if it exceeds IEEE-754 standard.
  • 'PrecisionPath' provides path based precision mapping, specifying 'bignumber' will automatically map all Number in that path as 'bignumber'. Otherwise, it will default to number, This applies deeply.

Package Sidebar

Install

npm i @muirglacier/jellyfish-json

Weekly Downloads

0

Version

0.1.9

License

MIT

Unpacked Size

13 kB

Total Files

10

Last publish

Collaborators

  • muirglacier