JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 146
  • Score
    100M100P100Q74043F
  • License Apache2

Serialize circular javascript object graphs

Package Exports

  • gson

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gson) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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