public String serialize(List<T> list) throws IOException {
        StringWriter sw = new StringWriter();
        JsonGenerator jsonGenerator = LoganSquare.JSON_FACTORY.createGenerator(sw);
        serialize(list, jsonGenerator);
        jsonGenerator.close();
        return sw.toString();
    }
Serialize a list of objects to a JSON String.

@param list The list of objects to serialize.
core/src/main/java/com/bluelinelabs/logansquare/JsonMapper.java