ralfstx / json-parser

A standard compliant JSON parser for JavaScript that supports custom handling of numbers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON Parser

A standard compliant JSON parser for JavaScript.

const data = parseJSON(input);

Custom handler for numbers

Allows to represent numbers in a custom type, for example to avoid precision loss.

const data = parseJSON(input, {
  handleNumber: (value) => new BigNumber(value)
})

About

A standard compliant JSON parser for JavaScript that supports custom handling of numbers

License:MIT License


Languages

Language:TypeScript 91.2%Language:JavaScript 8.8%