# unscape-json-recursively

> Unescapes JSON recursively

Latest version **1.0.2** (published 2018-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install unscape-json-recursively
pnpm add unscape-json-recursively
yarn add unscape-json-recursively
bun add unscape-json-recursively
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-09-26 |
| First published | 2018-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Martínez Vigo |
| Maintainers | danielmartinezvigo |

## Links

- npm: https://www.npmjs.com/package/unscape-json-recursively
- Repository: https://github.com/danielmartinezvigo/unscape-json-recursively
- Homepage: https://github.com/danielmartinezvigo/unscape-json-recursively#readme
- Issues: https://github.com/danielmartinezvigo/unscape-json-recursively/issues
- npm.io page: https://npm.io/package/unscape-json-recursively

## Recent versions

- 1.0.2 (latest) — 2018-09-26
- 1.0.1 — 2018-09-26
- 1.0.0 — 2018-09-26

## README

Unescapes JSON recursively

# Install

```shell
npm install --save unscape-json-recursively
```

# Usage

```js
JSON.unscapeRecursively = require('unscape-json-recursively');

const abcd = "{\"a\":\"{\\\"b\\\":\\\"{\\\\\\\"c\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"d\\\\\\\\\\\\\\\":null}\\\\\\\"}\\\"}\"}";
const abcd_unscaped = JSON.unscapeRecursively(abcd);

console.log(JSON.stringify(abcd_unscaped));
/* 
    Result:
    {"a":{"b":{"c":{"d":null}}}}
*/

const efg = "{\"e\":\"{\\\"f\\\":\\\"[{\\\\\\\"g\\\\\\\":null}]\\\"}\"}";
const efg_unscaped = JSON.unscapeRecursively(efg);

console.log(JSON.stringify(efg_unscaped));
/* 
    Result:
    {"e":{"f":[{"g":null}]}}
*/

const hij = {h:{i:"{\"j\":null}"}}
const hij_unscaped = JSON.unscapeRecursively(hij);

console.log(JSON.stringify(hij_unscaped));
/* 
    Result:
    {"h":{"i":{"j":null}}}
*/

const k = null
const k_unscaped = JSON.unscapeRecursively(k);

console.log(JSON.stringify(k_unscaped));
/* 
    Result:
    null
*/
```

# License

MIT

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