json-bigint-string

Replacement for JSON.parse which converts long integers to strings

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
json-bigint-string
211.0.09 years ago9 years agoMinified + gzip package size for json-bigint-string in KB

Readme

json-bigint-string

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.