我想将这个json数据反序列化为ArrayList
{"users":[{"username":"jon@jafprod.com","pw":"123456","data":""},{"username":"fred@jones.com","pw":"abcde","data":""}]}
这是班级
public class UserClass
{
public String email;
public String pw;
public JSONObject data;
}
我的尝试如:
UserClass users = new JSONDeserializer<UserClass>().use("users", UserClass.class)
.deserialize( resultStr, Array.class );
但总是会导致java.lang.NoClassDefFoundError:解析失败:Lflexjson / JSONDeserializer;