Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Aatrox": {
- "version": "5.2.1",
- "id": "Aatrox",
- "key": "266",
- "name": "Aatrox",
- "title": "the Darkin Blade"
- },
- "Ahri": {
- "version": "5.2.1",
- "id": "Ahri",
- "key": "103",
- "name": "Ahri",
- "title": "the Nine-Tailed Fox"
- },
- "Akali": {
- "version": "5.2.1",
- "id": "Akali",
- "key": "84",
- "name": "Akali",
- "title": "the Fist of Shadow"
- }
- }
- public class CampeonBO {
- private String version;
- private String id;
- private String key;
- private String name;
- private String title;
- //Getters and Setters
- }
- Type type = new TypeToken<List<CampeonBO>>(){}.getType();
- List<CampeonBO> campeones = gson.fromJson(bufferedReader, type);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement