JsonMediaTypeFormatter Properties

Include Protected Members
Include Inherited Members

The JsonMediaTypeFormatter type exposes the following members.

Properties

  Name Description
Public propertyStatic member DefaultMediaType Gets the default media type for JSON, namely "application/json".
Public property Indent Gets or sets a value indicating whether to indent elements when writing data.
Public property MaxDepth Gets or sets the maximum depth allowed by this formatter.
Public property MediaTypeMappings Gets the mutable collection of MediaTypeMapping objects that match HTTP requests to media types. (Inherited from MediaTypeFormatter.)
Public property RequiredMemberSelector Gets or sets the IRequiredMemberSelector instance used to determine required members. (Inherited from MediaTypeFormatter.)
Public property SerializerSettings Gets or sets the JsonSerializerSettings used to configure the JsonSerializer.
Public property SupportedEncodings Gets the mutable collection of character encodings supported bythis MediaTypeFormatter. (Inherited from MediaTypeFormatter.)
Public property SupportedMediaTypes Gets the mutable collection of media types supported bythis MediaTypeFormatter. (Inherited from MediaTypeFormatter.)
Public property UseDataContractJsonSerializer Gets or sets a value indicating whether to use DataContractJsonSerializer by default.

Top

See Also

Reference

JsonMediaTypeFormatter Class

System.Net.Http.Formatting Namespace