@defichain/jellyfish-json
v4.0.7
Published
SDK & Ecosystem for building modern lite DeFi Applications at scale.
Downloads
4,011
Readme
@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.