https://github.com/kaelzhang/node-json-parser
JSON parser to parse JSON object and MAINTAIN comments.
https://github.com/kaelzhang/node-json-parser
comment-json json json-parser
Last synced: 9 months ago
JSON representation
JSON parser to parse JSON object and MAINTAIN comments.
- Host: GitHub
- URL: https://github.com/kaelzhang/node-json-parser
- Owner: kaelzhang
- License: other
- Created: 2014-08-19T10:19:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T13:24:37.000Z (almost 7 years ago)
- Last Synced: 2025-04-23T17:16:16.026Z (about 1 year ago)
- Topics: comment-json, json, json-parser
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/kaelzhang/node-json-parser)
[](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