Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-int64

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-int64

JSON.parse / JSON.stringify with int64 support

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Build Status

json-int64

JSON.parse/stringify with Int64 support. Based on Douglas Crockford JSON.js package and node-int64.js library.

Example:

var JSONInt64 = require('json-int64');

var json = '{ "value" : 9223372036854775807, "v2": 123 }';
console.log('Input:%s\n', json);
var parsedValue = JSONInt64.parse(json);
console.log('Parsed int64 value: ', JSONInt64.util.toDecimalString(parsedValue.value));
console.log('Value after performing stringify operation on JS object:', JSONLong.stringify(parsedValue));

Output:

Input: { "value" : 9223372036854775807, "v2": 123 }
Parsed int64 value:   9223372036854775807
Value after performing stringify operation on JS object: {"value":9223372036854775807,"v2":123}

LICENSE

Apache 2.0

Keywords

FAQs

Package last updated on 08 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc