HF RL Explorer

Task: Serializing Objects with Cyclic References in JavaScript

Task: Serializing Objects with Cyclic References in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). When working with complex data structures in JavaScript (such as parse trees, graph structures, or objects with parent-child references), objects often contain circular references…

The task

When working with complex data structures in JavaScript (such as parse trees, graph structures, or objects with parent-child references), objects often contain circular references. Attempting to serialize these objects using `JSON.stringify()` results in a `TypeError: cyclic object value` error.

Part of PrimeIntellect/Terminal-Lego-15k.