Retrofit: How to handle/Parse following json on Retrofit2?

Created on 12 Jan 2020  路  3Comments  路  Source: square/retrofit

How to handle/parse this json on Retrofit2?

[
   [
      "106639",
      "jonni",
      "assistant director",
      "1"
   ],
   [
      "106639",
      "maikel",
      "operator and publisher",
      "1"
   ]
]

I ask already in stackoverflow but no answer
https://stackoverflow.com/questions/59704608/

All 3 comments

StackOverflow is the right place for this question because it isn't specific to Retrofit. Retrofit just passes the data to Gson and then hands you back whatever Gson returns. Decoding JSON and dealing with mapping that to an object is entirely an interaction with Gson.

StackOverflow is the right place for this question because it isn't specific to Retrofit. Retrofit just passes the data to Gson and then hands you back whatever Gson returns. Decoding JSON and dealing with mapping that to an object is entirely an interaction with Gson.

but i does not return any thing any goes to onfail method thats why?

How to handle/parse this json on Retrofit2?

[
   [
      "106639",
      "jonni",
      "assistant director",
      "1"
   ],
   [
      "106639",
      "maikel",
      "operator and publisher",
      "1"
   ]
]

I ask already in stackoverflow but no answer
https://stackoverflow.com/questions/59704608/

retrofit only parse this request/response by Converter.Factory, like GsonConverterFactory, without focusing on the specific parsing, i think you should debug GsonResponseBodyConverter.convert() to find the root cause.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jpshelley picture jpshelley  路  4Comments

Ne1c picture Ne1c  路  3Comments

JerzyPuchalski picture JerzyPuchalski  路  3Comments

ramonmoraes8080 picture ramonmoraes8080  路  3Comments

kokorin picture kokorin  路  4Comments