JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26094
  • Score
    100M100P100Q55164F
  • License MIT

JSON parser to parse JSON object and MAINTAIN comments.

Package Exports

  • json-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (json-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status Coverage

This package is deprecated, please use comment-json instead.

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

$ npm i json-parser

Usage

const {parse} = require('json-parser')
parse(text, reviver? = null, remove_comments? = false)
  : object | string | number | boolean | null

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

License

MIT