public void serialize(Map<String, T> map, OutputStream os) throws IOException {
        JsonGenerator jsonGenerator = LoganSquare.JSON_FACTORY.createGenerator(os);
        serialize(map, jsonGenerator);
        jsonGenerator.close();
    }
Serialize a list of objects to an OutputStream.

@param map The map of objects to serialize.
@param os The OutputStream to which the list should be serialized
core/src/main/java/com/bluelinelabs/logansquare/JsonMapper.java