1
我想反序列化以下json數據https://mtgox.com/code/data/getDepth.php。我不斷收到錯誤。以下是我的代碼。反序列化多維數組GSON
Gson gson = new Gson();
String json = readHTTPS(new URL("https://mtgox.com/code/data/getDepth.php"));
AskBids askBids = gson.fromJson(json, AskBids.class);
我AskBids類的樣子:
public class AskBids {
private String [] [] asks;
private String [] [] bids;
public AskBids(){}
}
的誤差得到的是com.google.gson.JsonParseException:期待對象發現: 「問道」
任何想法?謝謝