JSON.stringify with circular references module for Node.js node-json-stringify-safe provides a serializer or a wrapper for JSON.stringify to be able to customize how to deal with circular references in the object being serialized, instead of throwing an exception. Node.js is an event-based server-side javascript engine.