一、String-->JSONArray-->List
String str="";
JSONArray jsonArray = JSONArray.fromObject(str);
List<String> list = (List)JSONArray.toCollection(jsonArray,Website.class);
二、List-->JSONArray-->String
List<String> stringList=new ArrayList<>();
JSONArray json = JSONArray.fromObject(stringList);
String string=json.toString();