# json-parser

> JSON parser to parse JSON object and MAINTAIN comments.

Latest version **3.1.2** (published 2019-06-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.1.2 |
| Published | 2019-06-24 |
| First published | 2014-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6 |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | kaelzhang |
| Maintainers | kael |
| Keywords | json-parser, json, lex, parser, ast, syntax, mangler, comments |

## Links

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

## Dependencies (1)

- [comment-json](https://npm.io/package/comment-json.md) ^2.1.0

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

- 3.1.2 (latest) — 2019-06-24
- 3.1.1 — 2019-06-24
- 3.1.0 — 2019-06-24
- 3.0.0 — 2019-06-21
- 2.1.2 — 2019-06-19
- 2.1.1 — 2019-06-19
- 2.1.0 — 2019-06-19
- 2.0.3 — 2019-06-19
- 2.0.2 — 2019-06-19
- 2.0.1 — 2019-06-19
- 2.0.0 — 2019-06-19
- 1.1.5 — 2015-11-12
- 1.1.4 — 2015-11-07
- 1.1.3 — 2015-10-29
- 1.1.2 — 2015-10-29
- … 9 more at https://npm.io/package/json-parser/versions

## README

[![Build Status](https://travis-ci.org/kaelzhang/node-json-parser.svg?branch=master)](https://travis-ci.org/kaelzhang/node-json-parser)
[![Coverage](https://codecov.io/gh/kaelzhang/node-json-parser/branch/master/graph/badge.svg)](https://codecov.io/gh/kaelzhang/node-json-parser)

This package is **deprecated**, please use [**`comment-json`**](https://github.com/kaelzhang/node-comment-json) instead.

## [comment-json](https://github.com/kaelzhang/node-comment-json)

****

# json-parser

JSON parser to parse JSON object and MAINTAIN comments.

Since `3.0.0`, `json-parser` depends on `comment-json`, and directly use the `parse` method of `comment-json`

## Install

```sh
$ npm i json-parser
```

## Usage

```js
const {parse} = require('json-parser')
```

```ts
parse(text, reviver? = null, remove_comments? = false)
  : object | string | number | boolean | null
```

For details, see [https://github.com/kaelzhang/node-comment-json#parse](https://github.com/kaelzhang/node-comment-json#parse)

## License

MIT

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