# simple-json-parser

> Parse JSON without SyntaxError

Latest version **2.3.1** (published 2019-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-json-parser
pnpm add simple-json-parser
yarn add simple-json-parser
bun add simple-json-parser
```

## 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 | 2.3.1 |
| Published | 2019-10-12 |
| First published | 2019-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | MarioVidov |
| Maintainers | melbon |
| Keywords | json, JSON.parse |

## Links

- npm: https://www.npmjs.com/package/simple-json-parser
- Repository: https://github.com/melbon/simple-json-parser
- Homepage: https://github.com/melbon/simple-json-parser#readme
- Issues: https://github.com/melbon/simple-json-parser/issues
- npm.io page: https://npm.io/package/simple-json-parser

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

- 2.3.1 (latest) — 2019-10-12
- 2.3.0 — 2019-10-12
- 2.2.1 — 2019-10-12
- 2.1.0 — 2019-10-12
- 2.0.0 — 2019-10-12
- 1.2.0 — 2019-10-10
- 1.1.0 — 2019-10-10
- 1.0.0 — 2019-10-10

## README

# simple-json-parser
Parse JSON without SyntaxError

## Install
```
$ npm install simple-json-parser
```

## Usage
```js
import jsonParse from "simple-json-parser";

const obj1 = jsonParse('{"foo":"bar"}');
/* 
{
    "foo: "bar"
}
*/

const obj2 = jsonParse('foo');
/*
    {}
*/

const obj3 = jsonParse('123');
/*
    {}
*/

const obj4 = jsonParse(123);
/*
    {}
*/
```

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