带info的(有建值)
if(jsonStr != null &&
jsonStr.startsWith("\ufeff")){
}
JSONObject jsonobj = new JSONObject(jsonStr);
JSONArray info =
jsonobj.getJSONArray("info");
int j = info.length();
for(int i=0;i
JSONObject localJSONObject = info.getJSONObject(i);
Movielist news = new Movielist();
news.setVod_id(localJSONObject.getString("vod_id"));
不带info的(本身就是一个json数组格式)
JSONArray jsonobj = new JSONArray(jsonStr);
int j = jsonobj.length();
if(j>0){
JSONObject localJSONObject = jsonobj.getJSONObject(i);
Movielist news = new Movielist();
news.setVod_id(localJSONObject.getString("vod_id"));