This is my JSON Array :-
[ { \"firstName\" : \"abc\", \"lastName\" : \"xyz\" }, { \"firstName\" : \"pqr\", \"
Try this. It works with me. Hope you too!
List testList = new ArrayList<>(); testList.add(test1); Gson gson = new Gson(); String json = gson.toJson(testList); Type type = new TypeToken>(){}.getType(); ArrayList array = gson.fromJson(json, type);