I am using Retrofit with Jackson. For some reasons I cannot parse the following JSON:
[
{
\"ProfileImage\": null,
\"UserName\": \"joe\"
}
Use Square's converter by adding this to your build.gradle:
compile 'com.squareup.retrofit:converter-jackson:1.9.0'
Afterwards you can activate it by adding .setConverter(new JacksonConverter())
to your RestAdapter
builder.
with new versions of OkHTTP it seems its done with:
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(API_URL)
.addConverterFactory(JacksonConverterFactory.create())
.build();