JsonSerializer Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides functionality to serialize objects or value types to JSON and to deserialize JSON into objects or value types.
public ref class JsonSerializer abstract sealed
public static class JsonSerializer
type JsonSerializer = class
Public Class JsonSerializer
Public Module JsonSerializer
- Inheritance
-
JsonSerializer
For more information, see How to serialize and deserialize JSON.
Is |
Gets a value that indicates whether unconfigured JsonSerializerOptions instances should default to the reflection-based DefaultJsonTypeInfoResolver. |
Deserialize(Json |
Converts the JsonDocument representing a single JSON value into an instance specified by the |
Deserialize(Json |
Converts the JsonDocument representing a single JSON value into a |
Deserialize(Json |
Converts the JsonDocument representing a single JSON value into a |
Deserialize(Json |
Converts the JsonElement representing a single JSON value into an instance specified by the |
Deserialize(Json |
Converts the JsonElement representing a single JSON value into a |
Deserialize(Json |
Converts the JsonElement representing a single JSON value into a |
Deserialize(Json |
Converts the JsonNode representing a single JSON value into an instance specified by the |
Deserialize(Json |
Converts the JsonNode representing a single JSON value into a |
Deserialize(Json |
Converts the JsonNode representing a single JSON value into a |
Deserialize(Read |
Parses the UTF-8 encoded text representing a single JSON value into an instance specified by the |
Deserialize(Read |
Parses the UTF-8 encoded text representing a single JSON value into a |
Deserialize(Read |
Parses the UTF-8 encoded text representing a single JSON value into an instance of a specified type. |
Deserialize(Read |
Parses the text representing a single JSON value into an instance specified by the |
Deserialize(Read |
Parses the text representing a single JSON value into a |
Deserialize(Read |
Parses the text representing a single JSON value into an instance of a specified type. |
Deserialize(Stream, Json |
Reads the UTF-8 encoded text representing a single JSON value into an instance specified by the |
Deserialize(Stream, Type, Json |
Reads the UTF-8 encoded text representing a single JSON value into a |
Deserialize(Stream, Type, Json |
Reads the UTF-8 encoded text representing a single JSON value into a |
Deserialize(String, Json |
Parses the text representing a single JSON value into an instance specified by the |
Deserialize(String, Type, Json |
Parses the text representing a single JSON value into a |
Deserialize(String, Type, Json |
Parses the text representing a single JSON value into an instance of a specified type. |
Deserialize(Utf8Json |
Reads one JSON value (including objects or arrays) from the provided reader into an instance specified by the |
Deserialize(Utf8Json |
Reads one JSON value (including objects or arrays) from the provided reader into a |
Deserialize(Utf8Json |
Reads one JSON value (including objects or arrays) from the provided reader and converts it into an instance of a specified type. |
Deserialize<TValue>(Json |
Converts the JsonDocument representing a single JSON value into a |
Deserialize<TValue>(Json |
Converts the JsonDocument representing a single JSON value into a |
Deserialize<TValue>(Json |
Converts the JsonElement representing a single JSON value into a |
Deserialize<TValue>(Json |
Converts the JsonElement representing a single JSON value into a |
Deserialize<TValue>(Json |
Converts the JsonNode representing a single JSON value into a |
Deserialize<TValue>(Json |
Converts the JsonNode representing a single JSON value into a |
Deserialize<TValue>(Read |
Parses the UTF-8 encoded text representing a single JSON value into an instance of the type specified by a generic type parameter. |
Deserialize<TValue>(Read |
Parses the UTF-8 encoded text representing a single JSON value into a |
Deserialize<TValue>(Read |
Parses the text representing a single JSON value into an instance of the type specified by a generic type parameter. |
Deserialize<TValue>(Read |
Parses the text representing a single JSON value into a |
Deserialize<TValue>(Stream, Json |
Reads the UTF-8 encoded text representing a single JSON value into a |
Deserialize<TValue>(Stream, Json |
Reads the UTF-8 encoded text representing a single JSON value into a |
Deserialize<TValue>(String, Json |
Parses the text representing a single JSON value into an instance of the type specified by a generic type parameter. |
Deserialize<TValue>(String, Json |
Parses the text representing a single JSON value into a |
Deserialize<TValue>(Utf8Json |
Reads one JSON value (including objects or arrays) from the provided reader into an instance of the type specified by a generic type parameter. |
Deserialize<TValue>(Utf8Json |
Reads one JSON value (including objects or arrays) from the provided reader into a |
Deserialize |
Reads the UTF-8 encoded text representing a single JSON value into an instance specified by the |
Deserialize |
Reads the UTF-8 encoded text representing a single JSON value into a |
Deserialize |
Asynchronously reads the UTF-8 encoded text representing a single JSON value into an instance of a specified type. The stream will be read to completion. |
Deserialize |
Asynchronously reads the UTF-8 encoded text representing a single JSON value into an instance of a type specified by a generic type parameter. The stream will be read to completion. |
Deserialize |
Reads the UTF-8 encoded text representing a single JSON value into a |
Deserialize |
|
Deserialize |
Wraps the UTF-8 encoded text into an IAsyncEnumerable<T> that can be used to deserialize root-level JSON arrays in a streaming manner. |
Deserialize |
|
Deserialize |
Wraps the UTF-8 encoded text into an IAsyncEnumerable<T> that can be used to deserialize root-level JSON arrays in a streaming manner. |
Serialize(Object, Json |
Converts the provided value into a String. |
Serialize(Object, Type, Json |
Converts the provided value into a String. |
Serialize(Object, Type, Json |
Converts the value of a specified type into a JSON string. |
Serialize(Stream, Object, Json |
Converts the provided value to UTF-8 encoded JSON text and write it to the Stream. |
Serialize(Stream, Object, Type, Json |
Converts the provided value to UTF-8 encoded JSON text and write it to the Stream. |
Serialize(Stream, Object, Type, Json |
Converts the provided value to UTF-8 encoded JSON text and write it to the Stream. |
Serialize(Utf8Json |
Writes one JSON value (including objects or arrays) to the provided writer. |
Serialize(Utf8Json |
Writes one JSON value (including objects or arrays) to the provided writer. |
Serialize(Utf8Json |
Writes the JSON representation of the specified type to the provided writer. |
Serialize<TValue>(Stream, TValue, Json |
Converts the provided value to UTF-8 encoded JSON text and write it to the Stream. |
Serialize<TValue>(Stream, TValue, Json |
Converts the provided value to UTF-8 encoded JSON text and write it to the Stream. |
Serialize<TValue>(TValue, Json |
Converts the value of a type specified by a generic type parameter into a JSON string. |
Serialize<TValue>(TValue, Json |
Converts the provided value into a String. |
Serialize<TValue>(Utf8Json |
Writes the JSON representation of a type specified by a generic type parameter to the provided writer. |
Serialize<TValue>(Utf8Json |
Writes one JSON value (including objects or arrays) to the provided writer. |
Serialize |
Converts the provided value to UTF-8 encoded JSON text and write it to the PipeWriter. |
Serialize |
Converts the provided value to UTF-8 encoded JSON text and write it to the PipeWriter. |
Serialize |
Converts the provided value to UTF-8 encoded JSON text and write it to the PipeWriter. |
Serialize |
Converts the provided value to UTF-8 encoded JSON text and writes it to the Stream. |
Serialize |
Converts the provided value to UTF-8 encoded JSON text and write it to the Stream. |
Serialize |
Asynchronously converts the value of a specified type to UTF-8 encoded JSON text and writes it to the specified stream. |
Serialize |
Converts the provided value to UTF-8 encoded JSON text and write it to the PipeWriter. |
Serialize |
Converts the provided value to UTF-8 encoded JSON text and write it to the PipeWriter. |
Serialize |
Asynchronously converts a value of a type specified by a generic type parameter to UTF-8 encoded JSON text and writes it to a stream. |
Serialize |
Converts the provided value to UTF-8 encoded JSON text and write it to the Stream. |
Serialize |
Converts the provided value into a JsonDocument. |
Serialize |
Converts the provided value into a JsonDocument. |
Serialize |
Converts the provided value into a JsonDocument. |
Serialize |
Converts the provided value into a JsonDocument. |
Serialize |
Converts the provided value into a JsonDocument. |
Serialize |
Converts the provided value into a JsonElement. |
Serialize |
Converts the provided value into a JsonElement. |
Serialize |
Converts the provided value into a JsonElement. |
Serialize |
Converts the provided value into a JsonElement. |
Serialize |
Converts the provided value into a JsonElement. |
Serialize |
Converts the provided value into a JsonNode. |
Serialize |
Converts the provided value into a JsonNode. |
Serialize |
Converts the provided value into a JsonNode. |
Serialize |
Converts the provided value into a JsonNode. |
Serialize |
Converts the provided value into a JsonNode. |
Serialize |
Converts the provided value into a Byte array. |
Serialize |
Converts the provided value into a Byte array. |
Serialize |
Converts a value of the specified type into a JSON string, encoded as UTF-8 bytes. |
Serialize |
Converts the value of a type specified by a generic type parameter into a JSON string, encoded as UTF-8 bytes. |
Serialize |
Converts the provided value into a Byte array. |
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: