Success!
Código Java:
Ver originalpublic class Person {
private int age;
return name;
}
public void setName
(String name
) { this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
}
Código Java:
Ver originalString param
= request.
getParameter("persons"); Person[] persons = new Gson().fromJson(param, Person[].class);
for (Person person : persons) {
System.
out.
println(person.
getAge() + " " + person.
getName()); }
chuidiang muchas gracias!