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

4.0.7 • Public • Published

@defichain/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @defichain/jellyfish-json

Weekly Downloads

3,681

Version

4.0.7

License

MIT

Unpacked Size

13 kB

Total Files

10

Last publish

Collaborators

  • fuxingloh
  • defichain-npm