记录问题:org.json.JSONArray与com.alibaba.fastjson.JSONArray使用时不能混淆

org.json.JSONArray array = new org.json.JSONArray();
for (int i = 0; i  
  

 

 com.alibaba.fastjson.JSONArray array=new com.alibaba.fastjson.JSONArray();
        for (int i = 0; i  
  

array.toString()为"[{"id":"10","title":"北京"},{"id":"30","title":"上海"}]"

你可能感兴趣的:(疑难杂症)