参考URL:https://www.cn blogs.com/zhujia bin/p/5684746.htmljsonobjectjsonobject=newjsonobject (; qfdhb jsonArray=new qfdhb (; for(inta=0; aviewList.size (; a ) { JSONObject obj=new JSONObject (; viewbeanviewbean=view list.get (a; obj.put('a ',viewBean.getA ) ); obj.put('b ',viewBean.getB ) ); obj.put('c ',viewBean.getC ); obj.put('d ',viewBean.getD ) ); obj.put('e ',viewBean.getE ) ); JonArray.put(obj; }JSONobject.put('Array ',jsonArray ); string JSON=Java.net.urlencoder.encode (JSON object.tostring )、' utf-8 ' );