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]" }'
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too