json-bigint
Advanced tools
Comparing version
{ | ||
"name": "json-bigint", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "JSON.parse with bigints support", | ||
@@ -23,3 +23,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"bignumber.js": "^7.0.0" | ||
"bignumber.js": "^9.0.0" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
@@ -29,4 +29,4 @@ json-bigint | ||
var r1 = JSONbig.parse(json); | ||
console.log('JSON.parse(input).value : ', r1.value.toString()); | ||
console.log('JSON.stringify(JSON.parse(input)):', JSONbig.stringify(r1)); | ||
console.log('JSONbig.parse(input).value : ', r1.value.toString()); | ||
console.log('JSONbig.stringify(JSONbig.parse(input)):', JSONbig.stringify(r1)); | ||
``` | ||
@@ -45,4 +45,4 @@ | ||
big number JSON: | ||
JSON.parse(input).value : 9223372036854775807 | ||
JSON.stringify(JSON.parse(input)): {"value":9223372036854775807,"v2":123} | ||
JSONbig.parse(input).value : 9223372036854775807 | ||
JSONbig.stringify(JSONbig.parse(input)): {"value":9223372036854775807,"v2":123} | ||
``` | ||
@@ -49,0 +49,0 @@ ### Options |
Sorry, the diff of this file is not supported yet
35380
-0.23%10
-9.09%+ Added
- Removed
Updated