gson

Serialize circular javascript object graphs

  • gson

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gson
400.1.59 years ago9 years agoMinified + gzip package size for gson in KB

Readme

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