Skip to content

lifeiscontent/json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Parser

Simple JSON parser

Usage

import { Parser } from "json-parser";

const file = {
  cursor: 0,
  stack: [],
  input: `{
    "foo": "bar",
    "baz": "qux"
  }`,
};

if (new Parser().parse(file)) {
  console.log(file.stack[0]); // Outputs JSON as JS Object
}

About

Simple JSON Parser

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors