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:期待对象发现: “问道”
任何想法?谢谢