JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12324960
  • Score
    100M100P100Q223459F
  • License MIT

JSON.parse with bigints support

Package Exports

  • json-bigint

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (json-bigint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

json-bigint

JSON.parse/stringify with bigints support. Based on Douglas Crockford (JSON.js)(https://github.com/douglascrockford/JSON-js) package and (bignumber.js)[https://github.com/MikeMcl/bignumber.js] library.

==========

example:

var JSON = require('json-bigint');

var r = JSON.parse('{ "value" : 9223372036854775807 }');

console.log(r.value.toString());