2016-05-21 11 views
0

今夜、SquareのJSON解析ライブラリ「Moshi」を試してみてください。 ミラーの基本的な試みはan example in their READMEです。私は何を試してもそれを働かせていない!私はより多くの目/それに関するアイデアに感謝します。Moshi JSON parsing

Moshi moshi = new Moshi.Builder().build(); 
JsonAdapter<Leagues> jsonAdapter = moshi.adapter(Leagues.class); 
Leagues result = jsonAdapter.fromJson(rawJson); 

GitHub Gist関連ファイル

答えて

0

固定!leaguesのプロパティはLeagues.javaで、タイプはMap<String, League>でした。