How can I enable soft parsing with json in modification?
I am getting the error MalformedJSONException, unterminated object. The content of the url was passed without quotes or weakened json data. Parsing this content works fine when using only Gson, but when using Retrofit, it throws the above exception after reading the content of the url. Is there a way to provide easy content analysis? The main activity class is given below
RestAdapter adapter = new RestAdapter.Builder()
.setEndpoint(ENDPOINT)
.build();
Log.d("myinfo","endpoint built");
QuizAPI api = adapter.create(QuizAPI.class);
api.getFeed(new Callback<QuizObject>() {
@Override
public void success(QuizObject arg0, Response arg1) {
Log.d("myinfo", "success in callback");
Log.d("myinfo",arg0.getVersion());
}
@Override
public void failure(RetrofitError arg0) {
Log.d("myinfo", arg0.getLocalizedMessage());
}
});
}
protected void updateDisplay(){
output.append("updating..");
}
+3
source to share
No one has answered this question yet
See similar questions:
or similar: