Added a few tests for avoiding circular references when serializing a Notification to JSON. It revealed some false positives around sibling objects, and generally poor performance overall since a reference to every object encountered is kept until the process is complete.
The existing serialization and cycle detection logic was replaced with json-stringify-safe, which handles the test cases correctly.
Added a few tests for avoiding circular references when serializing a
Notification
to JSON. It revealed some false positives around sibling objects, and generally poor performance overall since a reference to every object encountered is kept until the process is complete.The existing serialization and cycle detection logic was replaced with
json-stringify-safe
, which handles the test cases correctly.Fixes #96