Skip to content

stringify() : Take JS Object or Array and Stringify it (even with circular references)

OrvilleChomer edited this page Dec 26, 2017 · 6 revisions

This method works just like JSON.stringify(). With one exception though: It WORKS on objects and arrays that contain circular references!

Note that the JSON string this generates cannot simply be passed into the JSON.parse() method and be expected to work! You will need to use this library's parse() method instead!

var orvObjLib = new OrvObjLib();
var sJSON = orvObjLib.stringify(existingObj);

Back to API List