If you are trying to create a generic method for object to string by concatenating all the key values in your js object then you can do the following
function ObjectToString(inputobj){
var output=" ";
var jsonkeys = (Object.keys(inputobj));
for(i=0;i<jsonkeys.length;i++){
output=output+""+inputobj[jsonkeys[i]];
}
return output;
}