lundi 1 décembre 2014

How to Read more than 1 JsonObject in a Json file


Vote count:

0




Hello Im using Gson library and i have a class named Estudiante.class and i have a Json file that looks like this


{"nombre":"Alex","apellido":"S","cedula":"1234","mes":2,"ano":2,"dia":2,"zona":"LSM","telefono":"0000","semestre":5,"promedio":5.0}{"nombre":"Alfred","apellido":"S","cedula":"523412","mes":6,"ano":6,"dia":6,"zona":"LSM","telefono":"0001","semestre":6,"promedio":6.0}


Now i want to read that and put it into a Estudiante Array with position 1 Alex and position 2 Alfred (and so on if i have more Objects).


Can any1 help me on this implementation. I've read thousands of topics and can't figure out what im doing wrong. Thanks.



asked 15 secs ago







How to Read more than 1 JsonObject in a Json file

Aucun commentaire:

Enregistrer un commentaire