今晚尝试使用 Square 的 JSON 解析库“Moshi”。这是我的基本尝试,反映了他们 README 中的一个示例。无论我尝试什么,我都没有让它工作!我会很感激更多的眼睛/任何想法。
Moshi moshi = new Moshi.Builder().build();
JsonAdapter<Leagues> jsonAdapter = moshi.adapter(Leagues.class);
Leagues result = jsonAdapter.fromJson(rawJson);