Android Question Check if list or not

fasilosman

Active Member
Licensed User
Longtime User
HI,

I receive some http response -
sometime as list ex : "[]" and
sometime as map ex : "{"Image" : "someimage"}".

Therefore I am unable to set the variable for the response.

Is there any option to check whether the data is a list or a map.

Edit: Thank for all. I found a solution. Converted to string and checked "startwith" = "{" or "["
 
Last edited:
Top