Amazing JavaScript Port Of ColdFusion's CFDump Tag
Shuns, from down under, sent me a link to a JavaScript method "Dump()" that he wrote. It is pretty darn fantastic and looks and feels just like the ColdFusion CFDump tag that we have all come to love. Anyway, check it out when you get a chance; it's freakin' sweeeet!
Reader Comments
That is sweet! Thanks for sharing.
great find Ben and cudos to the author.
I just downloaded the source and I think that this would make one hell of a JQuery plugin ;)
i get "too much recursion" when trying to dump a simple array of strings returned from JSON.
Chris,
You would get this type of error when you have circular looping. Not sure how it would happen in a JSON return value unless you had something like a nested structure referring to its parent.
The same would happen in a CFDump call with circular references.
This is just theory, you should contact the site for support.
Im not sure about JSON; if it's a nutual Javascript object then it will dump fine. I recently updated it aswell to allow for dom elements so get the latest version if you require this.
Thought you be interested in this, cfdump for node.js. Check it out here: https://github.com/ragamufin/nodedump