1
I’m with my return in json like this:
{
"success": 1,
"email": "[email protected]"
}
But the retrofit is saying it’s poorly formed:
Gives the following message:
use Jsonreader.setLenien(true) to Accept malformed JSON at line 1 column 1 path $
My message class is like this:
import com.google.gson.annotations.SerializedName;
public class RetornoMensagem {
@SerializedName("success")
private Integer success;
@SerializedName("email")
private String email;
public Integer getSuccess() {
return success;
}
public void setSuccess(Integer success) {
this.success = success;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}
I would like to see how you are returning in the retrofit also in the Throwable t
Would you like to know how you are returning? how do you see the return in the application?
– Thiago Luiz Domacoski
Decobri. It was my mistake. I was not sending all the parameters
– adventistaam