# jsonloop

> JSON.{parse, stringify} compatible for circular JSON

Latest version **0.0.1** (published 2020-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsonloop
pnpm add jsonloop
yarn add jsonloop
bun add jsonloop
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-05-22 |
| First published | 2020-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @serapath |
| Maintainers | serapath |
| Keywords | JSON, circular, parse, parser, stringify, json, object, circle |

## Links

- npm: https://www.npmjs.com/package/jsonloop
- Repository: https://github.com/serapath/jsonloop
- Homepage: https://github.com/serapath/jsonloop#readme
- Issues: https://github.com/serapath/jsonloop/issues
- npm.io page: https://npm.io/package/jsonloop

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.1 (latest) — 2020-05-22
- 0.0.0 — 2020-05-22

## README

# jsonloop
JSON.{parse, stringify} compatible for circular JSON

https://www.npmjs.com/package/jsonloop

https://serapath.github.io/jsonloop/

# use
`npm install jsonloop`
```js
const jsonloop = require('jsonloop')
const defaultSeperator = '.'
const cJSON = jsonloop(defaultSeperator)

var obj2 = { foo: { bar: [{ x: 'y'}, { y: 'x' }], xx: { yy: 'zz' } }, a: 'b' }
obj2.foo.bar.push(obj2.foo.xx)

const json = cJSON.stringify(obj2, 0, 2)
console.log(json) /* {
  "foo": {
    "bar": [
      {
        "x": "y"
      },
      {
        "y": "x"
      },
      {
        "yy": "zz"
      }
    ],
    "xx": "#.foo.bar.2"
  },
  "a": "b"
} */
const obj2 = cJSON.parse(json)
console.log(obj2) /*{
  "foo": {
    "bar": [
      {
        "x": "y"
      },
      {
        "y": "x"
      },
      {
        "yy": "zz"
      }
    ],
    "xx": { yy: "zz" }
  },
  "a": "b"
} */
```

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