Obtaining key, value from $.each - json OBJECT; NOT array

Obtaining key, value from $.each - json OBJECT; NOT array



Below is returned from my firebug. From console.dir(pData); and
console.log("type ... "+typeof(pData))= 'object';  pData is returned from AJAX call to .PHP file.

I'm trying to use $.each to obtain key, value pairs from pData. Does pData have to be converted to an array first since this doesn't seem to work?

  1. $.each(pData, function(key, value) {
       document.write(this.key+"..."+this.value+"<br />");
       
        });
Gives me  undefined 44 times. (length of pData).

Appreciate help in fixing this.