How Can I parse a JSON ARRAY to get the data without the [] and \"\"
here is the json
\"formattedAddress\": [ \"23, Damansara - Puchong Hwy (Bandar
Try something like this:
public String getFormattedAddressFromArray(JSONArray array) { List strings = new ArrayList(); try { for (int i = 0; i < array.length(); i++) { strings.add(array.getString(i)); } } catch (JSONException e) { e.printStackTrace(); } return TextUtils.join(", ", strings); }