Open
Description
Currently, circular references are each replaced with the string [Circular]
. It would be helpful to identify which key the circular reference points to.
const foo = {a: true};
foo.b = foo.a;
console.log(safeStringify(foo));
//=> '{ "a": true, "b": "[Circular]" }'
console.log(safeStringify(foo, { trace: true } ));
//=> '{ "a": true, "b": "[Circular *a]" }'