final String placeHolder) throws IOException {
final PrintWriter writer = response.getWriter();
final JSONArray jsonArray = new JSONArray();
for (final T next : list) {
final JSONObject jsonObject = (JSONObject) JSONSerializer.toJSON(next);
jsonArray.element(jsonObject);
}
final JSONObject jsonObjectOut = new JSONObject();
jsonObjectOut.put(placeHolder, jsonArray);
writer.print(jsonObjectOut);