Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 323 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 323 Bytes

peg-json-parser

A JSON Parser based on PEG.js

Install

# yarn
$ yarn add peg-json-parser

# or npm
$ npm install peg-json-parser --save

Usage

import { parse, astParse } from 'peg-json-parser';

// like JSON.parse()
parse('{"some": "json"}');

// return ESTree
astParse('{"some": "json"}');