I need to make GET request using Retrofit and one of the parameters is an array of key-value par, or actually, an array of arrays, that looks like this:
[ [1, 10], [50, 100] ]
I figured out how to perform this request in POSTMAN:
Key: durations[0][0] Value: 1
Key: durations[0][1] Value: 10
and so on. However, I have no idea ho to represent this for Retrofit. Thank you for help.
EDIT:
I tried to represent it as @Query("durations[]") List<List<Integer>> duration; Single entry is a List with two values, start and end. No luck.