var value = { "aaa": "111", "bbb": "222", "ccc": "333" }; var blkstr = []; $.each(value, function(idx2,val2) { var str = idx2 + ":" + val2; blkstr.push(str); }); console.log(blkstr.join(", "));