npm.io
0.1.3 • Published 12 years ago

gsonpp

Licence
Apache2
Version
0.1.3
Deps
0
Vulns
0
Weekly
0
Stars
1
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

gsonpp

Serialize huge circular object graphs to file, without using extra V8 heap to do it. Use GSON to deserialize.

npm install gsonpp gson

var gsonpp= require('gsonpp');

var a= { name: 'Andrea' },
    e= { name: 'Elena' };
    
a.daughter= e;
e.dad= a;

gsonpp.serialize('a.gson',a);

var fs= require('fs'),
    GSON= require('gson');

console.log(GSON.parse(fs.readFileSync('a.gson','utf8')));

Keywords