阿里的fastJson.jar:

//list转换为json
List<CustPhone> list = new ArrayList<CustPhone>();
String str=JSON.toJSON(list).toString();
  • 1
  • 2
  • 3
//json转换为list
  List<Person> list = new ArrayList<Person>();  
        list = JSONObject.parseArray(jasonArray, Person.class);  

相关文章:

  • 2022-01-02
  • 2021-09-14
  • 2021-11-18
  • 2021-12-28
  • 2021-12-28
  • 2021-12-28
  • 2021-12-31
猜你喜欢
  • 2021-11-14
  • 2021-11-14
  • 2021-12-18
  • 2021-11-05
  • 2021-12-18
  • 2021-11-14
  • 2021-10-26
相关资源
相似解决方案