ajson

0.3.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ajson

Weekly Downloads

3

Version

0.3.5

License

none

Unpacked Size

14.1 kB

Total Files

10

Last publish

Collaborators

  • tim-kos