Reads the UTF-8 encoded text representing a single JSON value into an instance specified by the jsonTypeInfo
. The Stream will be read to completion.
Reads one JSON value (including objects or arrays) from the provided reader into a returnType
.
Reads one JSON value (including objects or arrays) from the provided reader and converts it into an instance of a specified type.
Deserialize(JsonNode, Type, JsonSerializerContext)Converts the JsonNode representing a single JSON value into a returnType
.
Converts the JsonNode representing a single JSON value into a returnType
.
Converts the JsonElement representing a single JSON value into a returnType
.
Converts the JsonElement representing a single JSON value into a returnType
.
Converts the JsonDocument representing a single JSON value into a returnType
.
Converts the JsonDocument representing a single JSON value into a returnType
.
Parses the text representing a single JSON value into an instance of a specified type.
Deserialize(ReadOnlySpan<Char>, Type, JsonSerializerContext)Parses the text representing a single JSON value into a returnType
.
Parses the text representing a single JSON value into an instance of a specified type.
Deserialize(String, Type, JsonSerializerContext)Parses the text representing a single JSON value into a returnType
.
Parses the UTF-8 encoded text representing a single JSON value into an instance of a specified type.
Deserialize(ReadOnlySpan<Byte>, JsonTypeInfo)Parses the UTF-8 encoded text representing a single JSON value into an instance specified by the jsonTypeInfo
.
Parses the UTF-8 encoded text representing a single JSON value into a returnType
.
Parses the text representing a single JSON value into an instance specified by the jsonTypeInfo
.
Converts the JsonDocument representing a single JSON value into an instance specified by the jsonTypeInfo
.
Converts the JsonElement representing a single JSON value into an instance specified by the jsonTypeInfo
.
Parses the text representing a single JSON value into an instance specified by the jsonTypeInfo
.
Reads one JSON value (including objects or arrays) from the provided reader into an instance specified by the jsonTypeInfo
.
Reads the UTF-8 encoded text representing a single JSON value into a returnType
. The Stream will be read to completion.
Reads the UTF-8 encoded text representing a single JSON value into a returnType
. The Stream will be read to completion.
Converts the JsonNode representing a single JSON value into an instance specified by the jsonTypeInfo
.
Converts the JsonDocument representing a single JSON value into a TValue
.
Reads one JSON value (including objects or arrays) from the provided reader into a TValue
.
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>(JsonNode, JsonTypeInfo<TValue>)Converts the JsonNode representing a single JSON value into a TValue
.
Converts the JsonNode representing a single JSON value into a TValue
.
Converts the JsonElement representing a single JSON value into a TValue
.
Converts the JsonElement representing a single JSON value into a TValue
.
Converts the JsonDocument representing a single JSON value into a TValue
.
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>(String, JsonSerializerOptions)Parses the text representing a single JSON value into an instance of the type specified by a generic type parameter.
Deserialize<TValue>(ReadOnlySpan<Char>, JsonTypeInfo<TValue>)Parses the text representing a single JSON value into a TValue
.
Parses the text representing a single JSON value into an instance of the type specified by a generic type parameter.
Deserialize<TValue>(ReadOnlySpan<Byte>, JsonTypeInfo<TValue>)Parses the UTF-8 encoded text representing a single JSON value into a TValue
.
Reads the UTF-8 encoded text representing a single JSON value into a TValue
. The Stream will be read to completion.
Reads the UTF-8 encoded text representing a single JSON value into a TValue
. The Stream will be read to completion.
Parses the text representing a single JSON value into a TValue
.
Reads one JSON value (including objects or arrays) from the provided reader into a returnType
.
public:
static System::Object ^ Deserialize(System::Text::Json::Utf8JsonReader % reader, Type ^ returnType, System::Text::Json::Serialization::JsonSerializerContext ^ context);
public static object? Deserialize(ref System.Text.Json.Utf8JsonReader reader, Type returnType, System.Text.Json.Serialization.JsonSerializerContext context);
static member Deserialize : Utf8JsonReader * Type * System.Text.Json.Serialization.JsonSerializerContext -> obj
Public Function Deserialize (ByRef reader As Utf8JsonReader, returnType As Type, context As JsonSerializerContext) As Object
Parameters
The type of the object to convert to and return.
ReturnsA returnType
representation of the JSON value.
returnType
or context
is null
.
The JSON is invalid, returnType
is not compatible with the JSON, or a value could not be read from the reader.
reader
is using unsupported options.
There is no compatible JsonConverter for returnType
or its serializable members.
If the TokenType property of reader
is PropertyName or None, the reader will be advanced by one call to Read() to determine the start of the value.
Upon completion of this method, reader
is positioned at the final token in the JSON value. If an exception is thrown, the reader is reset to the state it was in when the method was called.
This method makes a copy of the data the reader acted on, so there is no caller requirement to maintain data integrity beyond the return of this method.
The JsonReaderOptions used to create the instance of the Utf8JsonReader take precedence over the JsonSerializerOptions when they conflict. Hence, AllowTrailingCommas, MaxDepth, and CommentHandling are used while reading.
Deserialize(Utf8JsonReader, Type, JsonSerializerOptions)Reads one JSON value (including objects or arrays) from the provided reader and converts it into an instance of a specified type.
public static object? Deserialize(ref System.Text.Json.Utf8JsonReader reader, Type returnType, System.Text.Json.JsonSerializerOptions? options = default);
public static object Deserialize(ref System.Text.Json.Utf8JsonReader reader, Type returnType, System.Text.Json.JsonSerializerOptions options = default);
static member Deserialize : Utf8JsonReader * Type * System.Text.Json.JsonSerializerOptions -> obj
Public Function Deserialize (ByRef reader As Utf8JsonReader, returnType As Type, Optional options As JsonSerializerOptions = Nothing) As Object
Public Shared Function Deserialize (ByRef reader As Utf8JsonReader, returnType As Type, Optional options As JsonSerializerOptions = Nothing) As Object
Parameters
The type of the object to convert to and return.
ReturnsA returnType
representation of the JSON value.
The JSON is invalid.
-or-
returnType
is not compatible with the JSON.
-or-
A value could not be read from the reader.
reader
is using unsupported options.
There is no compatible JsonConverter for returnType
or its serializable members.
If the TokenType property of reader
is JsonTokenType.PropertyName or JsonTokenType.None, the reader will be advanced by one call to Utf8JsonReader.Read() to determine the start of the value.
Upon completion of this method, reader
will be positioned at the final token in the JSON value. If an exception is thrown, the reader is reset to the state it was in when the method was called.
This method makes a copy of the data the reader acted on, so there is no caller requirement to maintain data integrity beyond the return of this method.
The JsonReaderOptions used to create the instance of the Utf8JsonReader take precedence over the JsonSerializerOptions when they conflict. Hence, JsonReaderOptions.AllowTrailingCommas, JsonReaderOptions.MaxDepth, and JsonReaderOptions.CommentHandling are used while reading.
For more information, see How to serialize and deserialize JSON.
Deserialize(Utf8JsonReader, JsonTypeInfo)Reads one JSON value (including objects or arrays) from the provided reader into an instance specified by the jsonTypeInfo
.
public:
static System::Object ^ Deserialize(System::Text::Json::Utf8JsonReader % reader, System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ jsonTypeInfo);
public static object? Deserialize(ref System.Text.Json.Utf8JsonReader reader, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo);
static member Deserialize : Utf8JsonReader * System.Text.Json.Serialization.Metadata.JsonTypeInfo -> obj
Public Function Deserialize (ByRef reader As Utf8JsonReader, jsonTypeInfo As JsonTypeInfo) As Object
Parameters
Metadata about the type to convert.
ReturnsA jsonTypeInfo
representation of the JSON value.
The JSON is invalid, jsonTypeInfo
is not compatible with the JSON, or a value could not be read from the reader.
reader
is using unsupported options.
If the TokenType property of reader
is PropertyName or None, the reader will be advanced by one call to Read() to determine the start of the value.
Upon completion of this method, reader
will be positioned at the final token in the JSON value. If an exception is thrown, the reader is reset to the state it was in when the method was called.
This method makes a copy of the data the reader acted on, so there is no caller requirement to maintain data integrity beyond the return of this method.
The JsonReaderOptions used to create the instance of the Utf8JsonReader take precedence over the JsonSerializerOptions when they conflict. Hence, AllowTrailingCommas, MaxDepth, and CommentHandling are used while reading.
Deserialize<TValue>(Utf8JsonReader, JsonTypeInfo<TValue>)Reads one JSON value (including objects or arrays) from the provided reader into a TValue
.
public:
generic <typename TValue>
static TValue Deserialize(System::Text::Json::Utf8JsonReader % reader, System::Text::Json::Serialization::Metadata::JsonTypeInfo<TValue> ^ jsonTypeInfo);
public static TValue? Deserialize<TValue>(ref System.Text.Json.Utf8JsonReader reader, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo);
static member Deserialize : Utf8JsonReader * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> -> 'Value
Public Function Deserialize(Of TValue) (ByRef reader As Utf8JsonReader, jsonTypeInfo As JsonTypeInfo(Of TValue)) As TValue
Type Parameters
The type to deserialize the JSON value into.
ParametersMetadata about the type to convert.
ReturnsTValue
A TValue
representation of the JSON value.
The JSON is invalid, TValue
is not compatible with the JSON, or a value could not be read from the reader.
reader
is using unsupported options.
There is no compatible JsonConverter for TValue
or its serializable members.
If the TokenType property of reader
is PropertyName or None, the reader will be advanced by one call to Read() to determine the start of the value.
Upon completion of this method, reader
is positioned at the final token in the JSON value. If an exception is thrown, the reader is reset to the state it was in when the method was called.
This method makes a copy of the data the reader acted on, so there is no caller requirement to maintain data integrity beyond the return of this method.
The JsonReaderOptions used to create the instance of the Utf8JsonReader take precedence over the JsonSerializerOptions when they conflict. Hence, AllowTrailingCommas, MaxDepth, and CommentHandling are used while reading.
Deserialize<TValue>(Utf8JsonReader, JsonSerializerOptions)Reads one JSON value (including objects or arrays) from the provided reader into an instance of the type specified by a generic type parameter.
public static TValue? Deserialize<TValue>(ref System.Text.Json.Utf8JsonReader reader, System.Text.Json.JsonSerializerOptions? options = default);
public static TValue Deserialize<TValue>(ref System.Text.Json.Utf8JsonReader reader, System.Text.Json.JsonSerializerOptions options = default);
static member Deserialize : Utf8JsonReader * System.Text.Json.JsonSerializerOptions -> 'Value
Public Function Deserialize(Of TValue) (ByRef reader As Utf8JsonReader, Optional options As JsonSerializerOptions = Nothing) As TValue
Public Shared Function Deserialize(Of TValue) (ByRef reader As Utf8JsonReader, Optional options As JsonSerializerOptions = Nothing) As TValue
Type Parameters
The target type of the JSON value.
Parameters ReturnsTValue
A TValue
representation of the JSON value.
The JSON is invalid.
-or-
TValue
is not compatible with the JSON.
-or-
A value could not be read from the reader.
reader
uses unsupported options.
There is no compatible JsonConverter for TValue
or its serializable members.
If the TokenType property of reader
is JsonTokenType.PropertyName or JsonTokenType.None, the reader will be advanced by one call to Utf8JsonReader.Read() to determine the start of the value.
Upon completion of this method, reader
will be positioned at the final token in the JSON value. If an exception is thrown, the reader is reset to the state it was in when the method was called.
This method makes a copy of the data the reader acted on, so there is no caller requirement to maintain data integrity beyond the return of this method.
The JsonReaderOptions used to create the instance of the Utf8JsonReader take precedence over the JsonSerializerOptions when they conflict. Hence, JsonReaderOptions.AllowTrailingCommas, JsonReaderOptions.MaxDepth, and JsonReaderOptions.CommentHandling are used while reading.
For more information, see How to serialize and deserialize JSON.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4