1.转字符串

    var arr = [{name:'张三',age:23},{name:'李四',age:24},{name:'王五',age:25}];

    JSON.stringify(arr);

  2.转对象

    var str = '{"name":"张三","age":23}';

    JSON.parse(str );