标签:object class static ToJson ati rgs mamicode man info
//JSONObject解析字符串,转化为对象 CityPartnerDTO dto = JSONObject.parseObject(middlemanDTO.getBizInfo(), CityPartnerDTO.class); //JSON把对象转化为String JSON.toJSONString(ids) //利用JSON来查看,数据结构 public static void main(String[] args) { System.out.println(JSON.toJSONString(RULES)); }
//数组转List List<String> openIdList= new ArrayList<>(Arrays.asList(data.getOpenidArray()));
标签:object class static ToJson ati rgs mamicode man info
原文地址:https://www.cnblogs.com/lvhouhou/p/11973813.html