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

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