code: public static <E> String serialize(Map<String, E> map, Class<E> jsonObjectClass) throws IOException {
          return mapperFor(jsonObjectClass).serialize(map);
      }
docs: Serialize a map of objects to a JSON String.
  
  @param map The map of objects to serialize.
  @param jsonObjectClass The @JsonObject class of the list elements