How Can I Print a Circular Structure in a Json-like Format? Better Stack Team Updated on April 4, 2024 If you have an object with circular references in Node.js and you want to print it in a JSON-like format, you can use the util.inspect method from the built-in util module.