code: public void serialize(Map<String, T> map, OutputStream os) throws IOException {
          JsonGenerator jsonGenerator = LoganSquare.JSON_FACTORY.createGenerator(os);
          serialize(map, jsonGenerator);
          jsonGenerator.close();
      }
docs: 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