code: 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();
      }
docs: Serialize a list of objects to a JSON String.
  
  @param map The map of objects to serialize.