I’m current calling the link in my Android project.
How can I traverse the array that looks like this to get duration.text?
I currently have the base Json object and am trying to use getJSONObject andgetJSONArray but not having any luck.
{"routes" :
[
{"legs" : [{"duration" : {"text" : "52 mins","value" : 3106 },
try this snippet it will find the “text” from the legs array