【发布时间】:2016-12-17 09:58:59
【问题描述】:
大家好,我正在用 android 开发应用程序,我必须能够接收 JSON 数组并将其转换为普通的旧 POJO 数组列表。我正在使用 GSON 来执行此操作,即
Gson gson = new Gson();
ArrayList<AccountTypesRegistered> list = gson.fromJson(responseBody.string(),
new TypeToken<ArrayList<AccountTypesRegistered>>() {
}.getType());
但是,如果我尝试这样做:
try {
for (int i = 0; i < list.size(); i++) {
AccountTypesRegistered checklist = list.get(i);
Log.e("JsonObject", checklist.toString());
Log.e("Name", checklist.getClientNames());
}
} catch (Exception e) {
e.printStackTrace();
}
我在 logcat 中收到此错误消息:
12-16 03:31:44.371: E/JsonObject(5121): com.nickSoft.dbhelper.AccountTypesRegistered@41d73610
12-16 03:31:44.371: W/System.err(5121): java.lang.NullPointerException: println needs a message
12-16 03:31:44.371: W/System.err(5121): at android.util.Log.println_native(Native Method)
12-16 03:31:44.371: W/System.err(5121): at android.util.Log.e(Log.java:232)
12-16 03:31:44.371: W/System.err(5121): at com.nickSoft.Connections.OkHttpHandlerIncoming$1.onResponse(OkHttpHandlerIncoming.java:91)
12-16 03:31:44.371: W/System.err(5121): at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126)
12-16 03:31:44.371: W/System.err(5121): at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
12-16 03:31:44.371: W/System.err(5121): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-16 03:31:44.371: W/System.err(5121): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-16 03:31:44.371: W/System.err(5121): at java.lang.Thread.run(Thread.java:841)
这是我的 JSON:
[
{
"AccountType": "15516321",
"CustomerName": "1MACMONSAM NICOLAS",
"Currentbalance": "1100,000.00",
"AccountKey": "",
"AllTransactions": [
{
"ID": 103,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5001",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:40",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 105,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5002",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 107,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5003",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 109,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5004",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 111,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5005",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 113,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5006",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 115,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5007",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 117,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5008",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 119,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5009",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 121,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "50010",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 103,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "01",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 105,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "02",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 107,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "03",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 109,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "04",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 111,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "05",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 113,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "06",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 115,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "07",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 117,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "08",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 119,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "09",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 121,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "010",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 103,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5001",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 105,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5002",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 107,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5003",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 109,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5004",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 111,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5005",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 113,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5006",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 115,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5007",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 117,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5008",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 119,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5009",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 121,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "50010",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
}
]
},
{
"AccountType": "25526322",
"CustomerName": "2MACMONSAM NICOLAS",
"Currentbalance": "2100,000.00",
"AccountKey": "",
"AllTransactions": [
{
"ID": 103,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5001",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:40",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 105,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5002",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 107,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5003",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 109,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5004",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 111,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5005",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 113,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5006",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 115,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5007",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 117,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5008",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 119,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5009",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 121,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "50010",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 103,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "01",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 105,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "02",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 107,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "03",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 109,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "04",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 111,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "05",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 113,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "06",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 115,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "07",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 117,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "08",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 119,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "09",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 121,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "010",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 103,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5001",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 105,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5002",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 107,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5003",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 109,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5004",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 111,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5005",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 113,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5006",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 115,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5007",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 117,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5008",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 119,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5009",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 121,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "50010",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
}
]
},
{
"AccountType": "35536323",
"CustomerName": "3MACMONSAM NICOLAS",
"Currentbalance": "3100,000.00",
"AccountKey": "",
"AllTransactions": [
{
"ID": 103,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5001",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:40",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 105,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5002",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 107,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5003",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 109,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5004",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 111,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5005",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 113,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5006",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 115,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5007",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 117,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5008",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 119,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "5009",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 121,
"DescriptionoOfTransaction": "I need money right now",
"Debit": "50010",
"Credit": "0",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
},
{
"ID": 103,
"DescriptionoOfTransaction": "I'am putting in money right now",
"Debit": "01",
"Credit": "1500",
"TransactionDate": "16/12/2016 16:42:41",
"ValueDate": "16/12/2016 16:42:41"
}
]
}
]
和类:
public class AccountTypesRegistered {
private String ClientNames;
private String AccountTypesOwnedByClient;
private ArrayList<AccountActivityObject> AccountsActivity;
private String AccountBalance;
private String AccountKey;
public AccountTypesRegistered() {
}
////////////////////////// SETTERS HERE///////////////////////////////////
public void setAccountTypesOwnedByClient(String AccountTypes) {
this.AccountTypesOwnedByClient = AccountTypes;
}
public void setAccountsActivity(ArrayList<AccountActivityObject> AccountsAct) {
this.AccountsActivity = AccountsAct;
}
public void setClientNames(String Clientna) {
this.ClientNames = Clientna;
}
public void setAccountBalance(String AccountBal) {
this.AccountBalance = AccountBal;
}
public void setAccountKey(String Acctkey) {
this.AccountKey = Acctkey;
}
/////////////////////// GETTERS
/////////////////////// HERE////////////////////////////////////////////
public String getClientNames() {
return this.ClientNames;
}
public String getAccountTypesOwnedByClient() {
return this.AccountTypesOwnedByClient;
}
public ArrayList<AccountActivityObject> getAccountsActivity() {
return this.AccountsActivity;
}
public String getAccountBalance() {
return this.AccountBalance;
}
public String getAccountKey() {
return this.AccountKey;
}
}
public class AccountActivityObject implements Parcelable {
private String IdOfTransaction;
private String DescriptionOftransaction;
private String ValueDate;
private String DateofTransaction;
private String Debit;
private String Credit;
private String Closing;
private String TransactionLinkToAccountKey;
public AccountActivityObject() {
}
/**
* Use when reconstructing User object from parcel This will be used only by
* the 'CREATOR'
*
* @param in
* a parcel to read this object
*/
public AccountActivityObject(Parcel in) {
this.DescriptionOftransaction = in.readString();
this.IdOfTransaction = in.readString();
this.ValueDate = in.readString();
this.DateofTransaction = in.readString();
this.Debit = in.readString();
this.Credit = in.readString();
this.Closing = in.readString();
this.TransactionLinkToAccountKey = in.readString();
}
/**
* Define the kind of object that you gonna parcel, You can use hashCode()
* here
*/
@Override
public int describeContents() {
return 0;
}
/**
* Actual object serialization happens here, Write object content to parcel
* one by one, reading should be done according to this write order
*
* @param dest
* parcel
* @param flags
* Additional flags about how the object should be written
*/
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(DescriptionOftransaction);
dest.writeString(IdOfTransaction);
dest.writeString(ValueDate);
dest.writeString(DateofTransaction);
dest.writeString(Debit);
dest.writeString(Credit);
dest.writeString(Closing);
dest.writeString(TransactionLinkToAccountKey);
}
/**
* This field is needed for Android to be able to create new objects,
* individually or as arrays
*
* If you don’t do that, Android framework will through exception Parcelable
* protocol requires a Parcelable.Creator object called CREATOR
*/
public static final Parcelable.Creator<AccountActivityObject> CREATOR = new Parcelable.Creator<AccountActivityObject>() {
public AccountActivityObject createFromParcel(Parcel in) {
return new AccountActivityObject(in);
}
public AccountActivityObject[] newArray(int size) {
return new AccountActivityObject[size];
}
};
// use this to text for equality of objects
@Override
public boolean equals(Object obj) {
if (obj instanceof AccountActivityObject) {
AccountActivityObject toCompare = (AccountActivityObject) obj;
return (this.IdOfTransaction.equalsIgnoreCase(toCompare.getIdOfTransaction()));
}
return false;
}
@Override
public int hashCode() {
return (this.getIdOfTransaction()).hashCode();
}
///////////////// SET METHODS/////////////////////////////////////////////
public void setIdOfTransaction(String IDoftransaction) {
IdOfTransaction = IDoftransaction;
}
public void setDescriptionOftransaction(String Descriptiontransaction) {
DescriptionOftransaction = Descriptiontransaction;
}
public void setValueDate(String ValueDateTransaction) {
ValueDate = ValueDateTransaction;
}
public void setDateofTransaction(String DateTransaction) {
DateofTransaction = DateTransaction;
}
// set Debit if available
public void setDebit(String DebitAmt) {
Debit = DebitAmt;
}
// set Credit
public void setCredit(String CreditAmt) {
Credit = CreditAmt;
}
// Always set closing
public void setClosing(String ClosingAmt) {
Closing = ClosingAmt;
}
public void setTransactionLinkToAccountKey(String TransacLinkToAccountKey) {
TransactionLinkToAccountKey = TransacLinkToAccountKey;
}
///////////////// GET METHODS/////////////////////////////////////////////
public String getValueDate() {
return ValueDate;
}
public String getDateofTransaction() {
return DateofTransaction;
}
public String getIdOfTransaction() {
return IdOfTransaction;
}
public String getDescriptionOftransaction() {
return DescriptionOftransaction;
}
// get show Debit if available
public String getDebit() {
return Debit;
}
// get show Credit if available
public String getCredit() {
return Credit;
}
// get show Closing
public String getClosing() {
return Closing;
}
public String getTransactionLinkToAccountKey() {
return TransactionLinkToAccountKey;
}
}
请问如何解决问题并从 JSON 中获取我的数组列表。欢迎任何帮助
【问题讨论】:
-
在此处使用您的 JSON 生成 POJO 类 -jsonschema2pojo.org
-
它可能对你有帮助
-
@Maharith 感谢提醒
-
欢迎您。希望我能有所帮助
标签: java android json arraylist gson