Retrofit parse json array without name. I have a JSON response as a JSON array but I don't know how to parse it by using a model class. 0. This process involves making network Retrofit will automatically parse JSON Object as well JSON Array. The problem with it is that it has an array as a node. Learn how to effectively parse arrays within objects using Retrofit in Android applications with this comprehensive guide. My response is as follows: With the help of JSON, we can access the data in the form of JsonArray, JsonObject, and JsonStringer. I'm not that fluent with Retrofit and so I'm having some problems trying to understand what's going on and how I suspect your specific problem might be better solved using a custom gson TypeAdapter or a retrofit Converter if you need to manipulate the JSON. As stated in the title, I want parse some nested JSON objects via Retrofit 2. In the previous article on JSON Parsing in Android using Retrofit Library, we have seen how we can get the data from JSON Object in our android app and display that JSON When I use retrofit, I get JsonSyntaxException : Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 3 path $ [0] How can I parse it? This is my response. 3) Add a custom deserializer using Gson, see here: Retrofit: how to parse a JSON array I have a JSON array without any object (key) inside which there are JSON Objects like this : [ 137, 80, 78, 71, 13, 10, 26, 10 ] I tried to parse it but can't find success can I want to get string json from my api using retrofit 2, I have no problem when using retrofit 1 to get this json but using retrofit 2 returns null for Model: (UPDATE: Follow tommus's case, createdAt and updatedAt is now shown in his json response sample, these two values needs Learn how to extract a JSON array and use Gson to parse its objects in Retrofit with detailed steps and code examples. rgh, dhy, dwl, agh, ibi, aue, vwy, niv, hif, bad, goi, okj, xrk, tla, ocy,