var jsonStr = {"key1":"value1","key2":"value2"};
$.each(JSON.parse(managername),function(index,value){
//index为key1,key2
//value为value1,value2
然后可以执行自己的逻辑
});
==>>向json数组中添加元素
var valueList = (此处为取出json数组的操作);
var jsonarray = eval('('+JSON.stringify(valueList)+')');
var params = [ ];
for (var p in jsonarray) {
params.push({"somename":jsonarray[p].somename,
"somepeaple":somepeaple});
}
得到的params即为最终结果.