Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gsonpublic

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

    install

    npm i gson

    Downloadsweekly downloads

    30

    version

    0.1.5

    license

    Apache2

    repository

    githubgithub

    last publish

    collaborators

    • avatar