# @defichain/jellyfish-json

> SDK & Ecosystem for building modern lite DeFi Applications at scale.

Latest version **4.0.7** (published 2024-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @defichain/jellyfish-json
pnpm add @defichain/jellyfish-json
yarn add @defichain/jellyfish-json
bun add @defichain/jellyfish-json
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.7 |
| Published | 2024-02-23 |
| First published | 2021-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 101 |
| Maintainers | fuxingloh, defichain-npm |

## Links

- npm: https://www.npmjs.com/package/@defichain/jellyfish-json
- Repository: https://github.com/BirthdayResearch/jellyfishsdk
- Homepage: https://github.com/BirthdayResearch/jellyfishsdk#readme
- Issues: https://github.com/BirthdayResearch/jellyfishsdk/issues
- npm.io page: https://npm.io/package/@defichain/jellyfish-json

## Dependencies (3)

- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.0.2
- [lossless-json](https://npm.io/package/lossless-json.md) ^1.0.5
- [@types/lossless-json](https://npm.io/package/@types/lossless-json.md) ^1.0.1

## Recent versions

- 4.0.7 (latest) — 2024-02-23
- 0.32.0 (next) — 2021-07-29
- 4.0.6 — 2024-02-05
- 4.0.5 — 2023-12-05
- 4.0.1 — 2023-11-14
- 4.0.0 — 2023-11-03
- 4.0.0-beta.14.1 — 2023-10-13
- 4.0.0-beta.14 — 2023-10-09
- 4.0.0-rc.1.2 — 2023-09-26
- 4.0.0-rc.1.1 — 2023-09-26
- 4.0.0-rc.1 — 2023-09-26
- 4.0.0-beta.11.1 — 2023-09-19
- 4.0.0-beta.11 — 2023-09-04
- 4.0.0-beta10.1 — 2023-08-31
- 4.0.0-beta.10 — 2023-08-28
- … 279 more at https://npm.io/package/@defichain/jellyfish-json/versions

## 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.

---
_Source: https://npm.io/package/@defichain/jellyfish-json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
