//json字符串,转换JSONObject
JSONObject jsonobject = JSONObject.fromObject(jsonStr);
//json对象转成javaBean
YourBean entity = (YourBean) JSONObject.toBean(jsonobject, YourBean.class);
//json字符串,转换JSONArray
JSONArray info = JSONArray.fromObject(listStr);
//JSONArray转JavaBean集合
List<YourBeanList> infoList = (List<YourBeanList>) JSONArray.toCollection(info, YourBeanList.class);