var data={"student":[
               {"name":"zhangsan","age":11},
               {"name":"lisi","age":12}
            ]};

 

将json对象转换成字符串:JSON.stringify(data);

将json字符串转化成json对象:JSON.parse(jsonstr);