I am getting MalformedJSONException, unterminated object error. The content of the url passed is unquoted or relaxed json data. Parsing this content works fine when using just Gson alone but when using Retrofit, it throws the above exception after reading the contents of the URL. Is there a way to enable lenient parsing of the content? 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..");
}