(If you’re debugging using the chrome developer tools).
var json_string = JSON.stringify(DropClasses(an_object));
var DropClasses = function(object)
for (var param in object)
if (object[param] instanceof jQuery || object[param] instanceof HTMLElement)
object[param] = null;
else if (typeof object[param] == 'object' )