Break the cyclic dependency in json using js JSON.stringify( , function( key, value) { if( key == 'parent') { return value.id;} else {return value;} });