How can I write a custom JSON adapter to serialize hierarchical IRIS objects with circular references?
The built-in %JSONExport() fails with circular references in deeply nested objects. How can I write a custom serializer that supports circular detection and reference tracking?