var strArray="[{"message1":{ "id": "-1","content": "this is a test str to Array"}}]";//测试字符串 var strArrayObj=eval(str)//返回是数组对象 var strJson='{"message1":{ "id": "-1","content": "this is a test str to Array"}}';//测试字符串 var strJsonObj=eval("("+strJson+")");//返回一个json对象