Serialize objects to JSON with handling for circular references
by sindresorhusJavaScript
Last 12 weeks · 2 commits
4 of 6 standards met
Repository: sindresorhus/safe-stringify. Description: Serialize objects to JSON with handling for circular references Stars: 163, Forks: 7. Primary language: JavaScript. Languages: JavaScript (97.1%), TypeScript (2.9%). License: MIT. Latest release: v1.3.0 (1mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 71%. Top contributors: sindresorhus, Meir017, sstur.
This should be more efficient on large (or heavily nested) objects if we don't re-create the replacer function within the loop.