New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

ajson

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajson

Asynchronous versions of JSON.parse and JSON.stringify to not block the event loop

0.3.5
latest
Version published
Maintainers
1
Created

AJSON

Gives you asynchronous versions of JSON.parse and JSON.stringify to prevent blocking the event loop too much when you parse and stringify big amounts of data.

Do not yet use AJSON.parse(), as it has a much higher memory footprint than JSON.parse(). The implementation for it will be changed.

Installation

npm install --save ajson

or

  • Clone or fork this repo
  • Run npm install .

Execution

var AJSON = require('ajson');

AJSON.parse("some_json_string", function(err, parsedData) {
  console.log(parsedData);
});

AJSON.stringify(someJsonObject, function(err, stringified) {
  console.log(stringified);
});

TODO

  • include a giant.json file

FAQs

Package last updated on 06 Dec 2018

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