There is a file with json extension. In google found this method of converting:
String jsonText = "{\"name\":\"Мурзик\",\"color\":-16777216,\"age\":9}"; GsonBuilder builder = new GsonBuilder(); Gson gson = builder.create(); Cat murzik = gson.fromJson(jsonText, Cat.class); Log.i("GSON", "Имя: " + murzik.name + "\nВозраст: " + murzik.age); jsonText is registered in the class. I do not understand how to get data from another file that is stored in assets
assetsinto a string. See the solution in my answer) - YuriySPb ♦