Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Stringy.js will stringify your circular JS objects without complaint.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib initial commit.
package.json
readme.md

readme.md

Stringy.js

Stringy.js will stringify your circular JS objects without complaint. Unfortunately it currently fails if the object hierarchy exceeds 30 total items.

Usage

var b = {foo: {bar: null}}

b.foo.bar = b // it's circular!

console.log("Filtering: ", b)
console.log(stringy.stringify(b)) // works!
console.log(JSON.stringify(b)) // exception
Something went wrong with that request. Please try again.