I suppose your input string is str,
String str = {"xyz":[{"name":"apple","email_id":"apple@apple.com"}]}
JSONObject json = JSONObject.fromObject(str);
JSONArray jarr = json.getJSONArray("xyz");
Inplace of xyz, you can pass root string input.
This should work.