Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery: print_r() display equivalent? [duplicate]

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!

like image 324
Eli Avatar asked Jan 19 '09 05:01

Eli


1 Answers

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

I was able to find this jQuery extension though.

like image 139
Paolo Bergantino Avatar answered Sep 21 '22 17:09

Paolo Bergantino