var c="{id=123,name=22}"
var arr=[]
function json(c,arr){
var jsonData={}
c=c.replace("{","").replace("}","");
c=c.split(',')
for(var i=0;i<c.length;i++){
jsonData[(c[i].split('=')[0]).replace(/s+/g,"")]=(c[i].split('=')[1]).replace(/s+/g,"")
}
arr.push(jsonData)
}