Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Deserialize< TValue >() [9/16]

static ? TValue System.Text.Json.JsonSerializer.Deserialize< TValue > ( string json,
JsonSerializerOptions? options = null )
inlinestatic

Definition at line 1134 of file JsonSerializer.cs.

1135 {
1136 if (json == null)
1137 {
1138 throw new ArgumentNullException("json");
1139 }
1140 JsonTypeInfo typeInfo = GetTypeInfo(options, typeof(TValue));
1141 return ReadFromSpan<TValue>(json.AsSpan(), typeInfo);
1142 }
static TValue ReadFromSpan< TValue >(ReadOnlySpan< byte > utf8Json, JsonTypeInfo jsonTypeInfo, int? actualByteCount=null)
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

References System.Text.Json.Dictionary, System.Text.Json.JsonSerializer.GetTypeInfo(), System.options, and System.Text.Json.JsonSerializer.ReadFromSpan< TValue >().