请教一下,这个json数据怎么解析
["11111","2222","3333","44444"] 我想把解析出来的字符串放到集合中...求指教
json
------解决方案--------------------
try {
JSONArray array = new JSONArray("");
ArrayList<String> result = new ArrayList<String>(array.length());
for (int ii = 0; ii < array.length(); ++ii) {
result.add(array.getString(ii));
}
} catch (JSONException e) {
Log.e("@", e.getMessage(), e);
}