jquery操作
json对象创建
var item0={"a":"val1","b":"val2"};
json对象字符串创建
var item1='{"a":"val1","b":"val2"}';
json数组对象创建
var item2=[{"a":"val1","b":"val2"},{"a":"val3","b":"val4"}
或者
var itemArray=[];
itemArray.push(item1);
json数组对象字符串
var item3='[{"a":"val1","b":"val2"},{"a":"val3","b":"val4"}'
json对象转换成字符串
var jsonStr=JSON.stringify(item0);
字符串转换成json对象
var jsonItem=JSON.parse(item1);