String strArr = serviceChargeInf.getStrArr();//前台传过来的json字符串数组
JSONArray fromObject = JSONArray.fromObject(strArr);//先将字符串数组转为jsonArray
//将json数组转为对象集合
List<ServiceChargeInf> list = JSONArray.toList(fromObject,ServiceChargeInf.class);
String strArr = serviceChargeInf.getStrArr();//前台传过来的json字符串数组
JSONArray fromObject = JSONArray.fromObject(strArr);//先将字符串数组转为jsonArray
//将json数组转为对象集合
List<ServiceChargeInf> list = JSONArray.toList(fromObject,ServiceChargeInf.class);