I have an Json Array Like -
[
  500,
  "Applied Before"
]
How can I parse it in android.
I have an Json Array Like -
[
  500,
  "Applied Before"
]
How can I parse it in android.
 
    
     
    
    You can try like this
 String data = " [500," +
            "  \"Applied Before\"] ";
    try {
        JSONArray arr = new JSONArray(data);
        Log.i("arr",""+arr.get(0));
    } catch (JSONException e) {
        e.printStackTrace();
    }
 
    
    Improper JSON Array syntax .
Example of a JSON Array :
"employees":[
        {"firstName":"John", "lastName":"Doe"}, 
        {"firstName":"Anna", "lastName":"Smith"}, 
        {"firstName":"Peter","lastName":"Jones"}
    ]
 
    
    