import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
public List jsonStringToList(String dataMms) {
return getList(dataMms);
}
static List getList(String dataMms) {
if (dataMms != null) {
List list = new ArrayList();
JSONArray jsonArray = JSONArray.fromObject(dataMms);
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject object = (JSONObject) jsonArray.get(i);
Object mms = JSONObject.toBean(object, MmsGoodsConsumeD.class);
list.add(mms);
}
return list;
} else {
return null;
}
}