Gson gson = GsonObjectDeserializer.produceGson();
String s = gson.toJson(list, new TypeToken<ArrayList<Product>>() {
}.getType());
JSONArray productJsonArray = new JSONArray(s);
String s = gson.toJson(list, new TypeToken<ArrayList<Product>>() {
}.getType());
JSONArray productJsonArray = new JSONArray(s);