npm.io
0.1.5 • Published 12 years ago

gson

Licence
Apache2
Version
0.1.5
Deps
1
Vulns
0
Weekly
0
Stars
4

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)));

Keywords