Use the key, value;
var o = {a:1, b:2} var s = ""; for (r in o) { s += r + ":" + o[r] + ";"; }
Result: s = a:1;b:2;