How to find a json array of array index inandroid?
Answers
Answered by
5
Answer:
This would be correct if you were parsing only the line you provided above. Note that to access types from GoogleMaps geocode you should get an array of results, than address_components, then you can access object components.getJSONObject(index).
This is a simple implementation that parses only formatted_address - what I needed in my project.
Similar questions
Physics,
5 months ago
Computer Science,
5 months ago
Math,
5 months ago
Hindi,
11 months ago
Science,
1 year ago
India Languages,
1 year ago