List of utility methods to do List Transform
String | transformToJsonArray(List> objectsWithJsonToString) Object.toString() has to return json StringBuilder json = new StringBuilder("["); for (Object object : objectsWithJsonToString) { json.append(object.toString()).append(","); if (objectsWithJsonToString.size() > 0 && json.charAt(json.length() - 1) == ',') { json = new StringBuilder(json.substring(0, json.length() - 1)); json.append("]"); ... |