var test = '{ colkey: "col", colsinfo: "NameList" }' var obj2 = eval("("+test+")"); alert(obj2.colsinfo);