Php – jQuery: print_r() display equivalent?

debuggingjqueryphp

Possible Duplicate:
JavaScript data formatting/pretty printer

I am getting a bit tired of looking at unformatted json blobs in FireBug.

Does anyone know an equivalent to PHP's print_r() for jQuery?

Something that would recursively make a display string from an object or array, that I could display on the page for quick debugging?

Thanks!

Best Solution

console.log is what I most often use when debugging.

I was able to find this jQuery extension though.