I can not get the values at all.
The value received by JSON are these:
{
"status": true,
"valores": {
"galo": {
"nome": "galinho",
"valor": 300,
"ultima_consulta": 1386349203,
"fonte": "galo.com.br"
}
}
}
I've tried everything, nothing's right.
RespostaServidor respostaServidor = response.body();
Valores valores = respostaServidor.getValores();
galo = valores.getGalo();
In class respostaServidor
, it gets the status
right, and the object, but then passes the null value to the rooster.
I do not know what else to do.