How can I parse a JSON object from a weblink into Android and store the different values into ArrayLists?
The JSON object of users looks like the below. It comes fro
Assuming you have a class that can store the results and appropiate constructor you can use code like below, using this json.org library for Java,
import org.json.*;
ArrayList users = new ArrayList();
JSONObject o = new JSONObject(jsonString);
JSONArray arr = obj.getJSONArray("Users");
for (int i = 0; i < arr.length(); i++)
{
JSONObject user = arr.getJSONObject(i);
users.add(new Users(user.getString("name"),user.getDouble("lat"),user.getDouble("lon")));
}
}