1
I’m working with this library https://github.com/koush/ion and I am unable to manipulate the data return via JSON of the following format
[{"id":"1","nome":"XXX","cidade":"XXXXXXX"},{"id":"2","nome":"XXXX","cidade":"XXXXXXXXXX"}]
JsonObject json = new JsonObject();
Ion.with(context)
.load("http://example.com/post")
.setJsonObjectBody(json)
.asJsonObject()
.setCallback(new FutureCallback<JsonObject>() {
@Override
public void onCompleted(Exception e, JsonObject result) {
// COMO TRABALHAR ELES AQUI????
}
});
Have you been able to clear that up? Because I can’t work within: public void onCompleted(Exception e, Jsonobject result) { when I use the Ion structure within a method that I will instantiate in another class.
– Flavio Ricci