Constructor JsonMessageSerializer(JsonSerializerOptions, string, IReadOnlyCollection<string>?)
Creates a JSON serializer with custom options, a specific primary content type,
and an optional extended list of media-type aliases the instance also handles.
public JsonMessageSerializer(JsonSerializerOptions options, string contentType, IReadOnlyCollection<string>? mediaTypes)
Remarks
Used to ship profile serializers (SCIM, Problem Details, …) that own their own
and declare non-application/json
media types without subclassing.