Serialize circular javascript object graphs
JavaScript
Switch branches/tags
Nothing to show
Latest commit bc405a3 May 2, 2014 @aaaristo Update README.md
Permalink
Failed to load latest commit information.
test added eachNode callback Apr 30, 2014
.gitignore Initial commit Apr 16, 2014
LICENSE Initial commit Apr 16, 2014
README.md Update README.md May 2, 2014
index.js added eachNode callback Apr 30, 2014
package.json added eachNode callback Apr 30, 2014

README.md

GSON

Serialize circular javascript object graphs, using circularjs to traverse them in a non-recusive way.

npm install gson
var GSON= require('gson');

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

console.log(GSON.decode(GSON.encode(a)));
console.log(GSON.parse(GSON.stringify(a)));

Huge graph serialization

When you have graphs of some million nodes it may be necessary to hand-off serialization to somenthing out of the V8 heap, for this reason i've written gsonpp.