API Reference
Class
DnsJson
Provides JSON serialization helpers used by DNS over HTTPS implementations.
Inheritance
- Object
- DnsJson
Methods
Deserialize``1(System.Net.Http.HttpResponseMessage response, System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0} debug, System.Boolean typeInfo) #Deserialize a JSON HTTP response into a given type.
Type Parameters
- T
- The type to deserialize into.
Parameters
- response System.Net.Http.HttpResponseMessage
- The HTTP response message with JSON as a body.
- debug System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0}
- Whether to print the JSON data to the console.
- typeInfo System.Boolean
- Source generated metadata for the target type.
Serialize``1(``0 value, System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0} typeInfo) #Serializes the specified value using pre-configured JSON options.
Type Parameters
- T
- Type of the value to serialize.
Parameters
- value ``0
- Value to serialize.
- typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0}
- Source generated metadata for the payload type.
Returns
Serialized JSON string.