json-bigint-string

Replacement for JSON.parse which converts long integers to strings


Keywords
node, json, bigint, js
License
QPL-1.0
Install
npm install json-bigint-string@1.0.0

Documentation

json-bigint-string

Build Status

Drop in replacement for JSON.parse which converts integers long enough to lose precision in Javascript into strings.

Based on json-bigint by sidorares.

Usage

var JSONBigInt = require('json-bigint-string');

// console.log(JSON.parse(someJson));
console.log(JSONBigInt.parse(someJson));

License

Released into the public domain with Unlicense.

Contains a modified copy of json_parse.js from JSON-js, also in the public domain.