[Solved] Retrofit 2 response body is empty or Model class is wrong. Cannot get JSON data it gives an Exception: Expected BEGIN_ARRAY but was BEGIN_OBJECT

[ad_1]

your model is wrong
it should look like this pseudo code

public Response{
    String status;
    int count;
    List<Category> categories;

3

[ad_2]

solved Retrofit 2 response body is empty or Model class is wrong. Cannot get JSON data it gives an Exception: Expected BEGIN_ARRAY but was BEGIN_OBJECT