An open API service indexing awesome lists of open source software.

https://github.com/yoannchb-pro/own-json-parser

A JSON parser made in typescript with tokenizer, ast, parser ...
https://github.com/yoannchb-pro/own-json-parser

ast-builder javascript json-parser nodejs parser tokenizer typescript

Last synced: about 2 months ago
JSON representation

A JSON parser made in typescript with tokenizer, ast, parser ...

Awesome Lists containing this project

README

          

# own-json-parser

A JSON parser made in typescript with tokenizer, ast, parser ...

## Usage

`JSONParser` Should work as `JSON.parser`

```js
import JSONParser from "./dist";

JSONParser(
'{ "greeting": "Hello World !", "error": false, "note": 20, "bool": "false" }'
);
//Ouput: { greeting: "Hello World !", error: false, note: 20, bool: "false" }

JSONParser('{ "greeting": "Hello World !", "test": [,] }');
//Will throw a SyntaxError for "," with line and column
```