I\'m trying to pass an object with circular references from node.js server to client-side javascript.
Server (node.js):
var object = { circular: obje
Douglas Crockford has a solution for this that I have successfully used to solve this problem before: Cycle.js
instead of just using stringify and parse you would first call decycle and restore with retrocycle
var jsonString = JSON.stringify(JSON.decycle(parent));
var restoredObject = JSON.retrocycle(JSON.parse(jsonString));
JSFiddle