default List<MediaType> getContentTypes() {
        return List.of(MediaType.TEXT_PLAIN);
    }
Collect a list of objects and transform them into a String
in the intended format.

@param json the json
@return the string
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/serialization/StringSerializer.java