Here’s how to show the contents of a object in Javascript
function concatObject(obj) {
str='';
for(prop in obj)
{
str+=prop + " value :"+ obj[prop]+"\n";
}
return(str);
}
source http://www.lightenna.com/news/javascript-show-object