ajson
Asynchronous versions of JSON.parse and JSON.stringify to not block the event loop
Last updated 5 years ago by tim-kos .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ajson 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.3.5                                ...           latest (2 years ago)

8 Versions

  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           5 years ago
  • 0.3.3                                ...           5 years ago
  • 0.3.2                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 0
Last Day 0
Last Week 1
Last Month 4
Dependencies (5)
Dev Dependencies (4)
Dependents (3)

Copyright 2014 - 2016 © taobao.org |