flatted
A fast and minimal circular JSON parser
...The package also includes toJSON and fromJSON helpers for classes that need recursive data to survive standard JSON workflows. It supports ESM, CommonJS, and CDN delivery, with related implementations available for PHP, Python, and Go. Flatted only handles JSON-compatible values, so specialized objects and internal runtime resources require a different serialization strategy.