标签:
public String[] json2JsonArray(String str){ JSONArray jsonArray = JSONArray.fromObject(str); String[] stringArray = new String[jsonArray.size()]; for(int i=0;i<jsonArray.size();i++){ stringArray[i] = jsonArray.getString(i); } return stringArray; } public String[] JsonArray2StringArray(JSONArray jsonArray){ String[] stringArray = new String[jsonArray.size()]; for(int i=0;i<jsonArray.size();i++){ stringArray[i] = jsonArray.getString(i); } return stringArray; }
Json2JsonArray JsonArray2StringArray
标签:
原文地址:http://www.cnblogs.com/joyblabla/p/4756711.html