62 instantiations of Utf8JsonReader
Aspire.Azure.Npgsql (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Dashboard (1)
Aspire.Hosting.Azure (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.Server.Tests (4)
Microsoft.AspNetCore.Components.Web.Tests (12)
Microsoft.AspNetCore.Http.Abstractions.Tests (5)
Microsoft.AspNetCore.Http.Connections.Common (1)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.SignalR.Common (2)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.DependencyModel (1)
Microsoft.JSInterop (2)
Microsoft.JSInterop.Tests (8)
System.Private.Windows.Core (1)
System.Text.Json (12)
534 references to Utf8JsonReader
Aspire.Azure.Npgsql (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Dashboard (1)
Aspire.Hosting.Azure (1)
ConfigurationSchemaGenerator (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Server.Tests (4)
Microsoft.AspNetCore.Components.Web.Tests (12)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (16)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (5)
Microsoft.AspNetCore.Http.Connections.Common (10)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Mvc.Core.Test (6)
Microsoft.AspNetCore.OpenApi (9)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.SignalR.Common (10)
Microsoft.AspNetCore.SignalR.Protocols.Json (17)
Protocol\JsonHubProtocol.cs (9)
135Utf8JsonReader argumentsToken = default;
137Utf8JsonReader itemsToken = default;
139Utf8JsonReader resultToken = default;
146var reader = new Utf8JsonReader(input, isFinalBlock: true, state: default);
481private static Dictionary<string, string> ReadHeaders(ref Utf8JsonReader reader)
814private object? BindType(ref Utf8JsonReader reader, ReadOnlySequence<byte> input, Type type)
830private object? BindType(ref Utf8JsonReader reader, Type type) => DeserializeObject(ref reader, type);
832private object?[] BindTypes(ref Utf8JsonReader reader, IReadOnlyList<Type> paramTypes)
921private object? DeserializeObject(ref Utf8JsonReader reader, Type type) => JsonSerializer.Deserialize(ref reader, type, _payloadSerializerOptions);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (8)
Microsoft.Build (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol (25)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.DependencyModel (24)
Microsoft.JSInterop (11)
Microsoft.JSInterop.Tests (8)
Microsoft.JSInterop.WebAssembly (1)
Microsoft.ML.AutoML (4)
Microsoft.ML.AutoML.Tests (2)
Microsoft.ML.SearchSpace (5)
Microsoft.ML.SearchSpace.Tests (2)
Microsoft.ML.Tokenizers (4)
Roslyn.VisualStudio.Next.UnitTests (2)
Shared.Tests (3)
System.Memory.Data (1)
System.Private.Windows.Core (1)
System.Text.Json (309)
System\Text\Json\Serialization\Converters\CastingConverter.cs (5)
44public override T? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
50internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out T? value)
60public override T ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
63internal override T ReadAsPropertyNameCore(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
72internal override T ReadNumberWithCustomHandling(ref Utf8JsonReader reader, JsonNumberHandling handling, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs (5)
20public sealed override object ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
26internal sealed override object ReadAsPropertyNameCore(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
78public override object? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
97public override object? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
108internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (4)
20internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, [MaybeNullWhen(false)] out T value)
271internal static void PopulatePropertiesFastPath(object obj, JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options, ref Utf8JsonReader reader, scoped ref ReadStack state)
461ref Utf8JsonReader reader,
496protected static bool ReadAheadPropertyValue(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonPropertyInfo jsonPropertyInfo)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (7)
24internal sealed override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, [MaybeNullWhen(false)] out T value)
72Utf8JsonReader tempReader;
275protected abstract bool ReadAndCacheConstructorArgument(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonParameterInfo jsonParameterInfo);
283private void ReadConstructorArguments(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonSerializerOptions options)
381private bool ReadConstructorArgumentsWithContinuation(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonSerializerOptions options)
461ref Utf8JsonReader reader,
497ref Utf8JsonReader reader,
System\Text\Json\Serialization\JsonConverter.cs (7)
104ref Utf8JsonReader reader,
202internal abstract object? ReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options);
203internal abstract bool OnTryReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value);
204internal abstract bool TryReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value);
205internal abstract object? ReadAsPropertyNameAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options);
206internal abstract object? ReadAsPropertyNameCoreAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options);
207internal abstract object? ReadNumberWithCustomHandlingAsObject(ref Utf8JsonReader reader, JsonNumberHandling handling, JsonSerializerOptions options);
System\Text\Json\Serialization\JsonConverterFactory.cs (6)
53internal sealed override object? ReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
61ref Utf8JsonReader reader,
73ref Utf8JsonReader reader,
84internal sealed override object? ReadAsPropertyNameAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
91internal sealed override object? ReadAsPropertyNameCoreAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
98internal sealed override object? ReadNumberWithCustomHandlingAsObject(ref Utf8JsonReader reader, JsonNumberHandling handling, JsonSerializerOptions options)
System\Text\Json\Serialization\JsonConverterOfT.cs (15)
129internal virtual bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out T? value)
141/// <param name="reader">The <see cref="Utf8JsonReader"/> to read from.</param>
146public abstract T? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options);
148internal bool TryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out T? value, out bool isPopulatedValue)
282internal sealed override bool OnTryReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value)
289internal sealed override bool TryReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value)
296internal sealed override object? ReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
302internal sealed override object? ReadAsPropertyNameAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
308internal sealed override object? ReadAsPropertyNameCoreAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
314internal sealed override object? ReadNumberWithCustomHandlingAsObject(ref Utf8JsonReader reader, JsonNumberHandling handling, JsonSerializerOptions options)
499internal void VerifyRead(JsonTokenType tokenType, int depth, long bytesConsumed, bool isValueConverter, ref Utf8JsonReader reader)
586/// <param name="reader">The <see cref="Utf8JsonReader"/> to read from.</param>
591public virtual T ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
603internal virtual T ReadAsPropertyNameCore(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
680internal virtual T ReadNumberWithCustomHandling(ref Utf8JsonReader reader, JsonNumberHandling handling, JsonSerializerOptions options)
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (28)
35/// If the <see cref="Utf8JsonReader.TokenType"/> property of <paramref name="reader"/>
37/// reader will be advanced by one call to <see cref="Utf8JsonReader.Read"/> to determine
53/// The <see cref="JsonReaderOptions"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
59public static TValue? Deserialize<TValue>(ref Utf8JsonReader reader, JsonSerializerOptions? options = null)
89/// If the <see cref="Utf8JsonReader.TokenType"/> property of <paramref name="reader"/>
91/// reader will be advanced by one call to <see cref="Utf8JsonReader.Read"/> to determine
106/// The <see cref="JsonReaderOptions"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
112public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerOptions? options = null)
137/// If the <see cref="Utf8JsonReader.TokenType"/> property of <paramref name="reader"/>
139/// reader will be advanced by one call to <see cref="Utf8JsonReader.Read"/> to determine
155/// The <see cref="JsonReaderOptions"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
159public static TValue? Deserialize<TValue>(ref Utf8JsonReader reader, JsonTypeInfo<TValue> jsonTypeInfo)
183/// If the <see cref="Utf8JsonReader.TokenType"/> property of <paramref name="reader"/>
185/// reader will be advanced by one call to <see cref="Utf8JsonReader.Read"/> to determine
201/// The <see cref="JsonReaderOptions"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
205public static object? Deserialize(ref Utf8JsonReader reader, JsonTypeInfo jsonTypeInfo)
241/// If the <see cref="Utf8JsonReader.TokenType"/> property of <paramref name="reader"/>
243/// reader will be advanced by one call to <see cref="Utf8JsonReader.Read"/> to determine
258/// The <see cref="JsonReaderOptions"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
262public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerContext context)
270private static TValue? Read<TValue>(ref Utf8JsonReader reader, JsonTypeInfo<TValue> jsonTypeInfo)
281Utf8JsonReader restore = reader;
285Utf8JsonReader scopedReader = GetReaderScopedToNextValue(ref reader, ref state);
295private static object? ReadAsObject(ref Utf8JsonReader reader, JsonTypeInfo jsonTypeInfo)
306Utf8JsonReader restore = reader;
310Utf8JsonReader scopedReader = GetReaderScopedToNextValue(ref reader, ref state);
320private static Utf8JsonReader GetReaderScopedToNextValue(ref Utf8JsonReader reader, scoped ref ReadStack state)
System\Text\Json\ThrowHelper.Serialization.cs (9)
400ref Utf8JsonReader reader,
456public static void ReThrowWithPath(scoped ref ReadStack state, in Utf8JsonReader reader, Exception ex)
463public static void AddJsonExceptionInformation(scoped ref ReadStack state, in Utf8JsonReader reader, JsonException ex)
567public static void ThrowNotSupportedException(scoped ref ReadStack state, in Utf8JsonReader reader, Exception innerException)
621public static void ThrowNotSupportedException_DeserializeNoConstructor(JsonTypeInfo typeInfo, ref Utf8JsonReader reader, scoped ref ReadStack state)
650public static void ThrowNotSupportedException_CannotPopulateCollection(Type type, ref Utf8JsonReader reader, scoped ref ReadStack state)
720public static void ThrowJsonException_MetadataInvalidPropertyWithLeadingDollarSign(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state, in Utf8JsonReader reader)
754public static void ThrowJsonException_MetadataInvalidPropertyInArrayMetadata(scoped ref ReadStack state, Type propertyType, in Utf8JsonReader reader)
797ref Utf8JsonReader reader,
System.Windows.Forms.Tests (1)