35 instantiations of Utf8JsonWriter
Aspire.Dashboard (1)
Aspire.Hosting (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Redis (1)
Aspire.Hosting.Tests (3)
JwtBearerSample (1)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Connections.Common (1)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.StaticAssets.Tests (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.EventSource (1)
SignalRSamples (1)
System.Text.Json (7)
412 references to Utf8JsonWriter
Aspire.Dashboard (1)
Aspire.Hosting (4)
Aspire.Hosting.AWS (5)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Dapr (5)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Redis (1)
Aspire.Hosting.Tests (3)
ConfigurationSchemaGenerator (1)
JwtBearerSample (1)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (16)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Connections.Common (3)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Mvc.Core.Test (6)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Microsoft.AspNetCore.SignalR.Common (4)
Microsoft.AspNetCore.SignalR.Protocols.Json (17)
Protocol\JsonHubProtocol.cs (15)
522var writer = reusableWriter.GetJsonWriter();
579private static void WriteHeaders(Utf8JsonWriter writer, HubInvocationMessage message)
592private void WriteCompletionMessage(CompletionMessage message, Utf8JsonWriter writer)
620private static void WriteCancelInvocationMessage(CancelInvocationMessage message, Utf8JsonWriter writer)
625private void WriteStreamItemMessage(StreamItemMessage message, Utf8JsonWriter writer)
640private void WriteInvocationMessage(InvocationMessage message, Utf8JsonWriter writer)
650private void WriteStreamInvocationMessage(StreamInvocationMessage message, Utf8JsonWriter writer)
660private static void WriteCloseMessage(CloseMessage message, Utf8JsonWriter writer)
673private static void WriteAckMessage(AckMessage message, Utf8JsonWriter writer)
678private static void WriteSequenceMessage(SequenceMessage message, Utf8JsonWriter writer)
683private void WriteArguments(object?[] arguments, Utf8JsonWriter writer)
700private static void WriteStreamIds(string[]? streamIds, Utf8JsonWriter writer)
715private static void WriteInvocationId(HubInvocationMessage message, Utf8JsonWriter writer)
723private static void WriteMessageType(Utf8JsonWriter writer, int type)
917private void SerializeObject(Utf8JsonWriter writer, object? value) => JsonSerializer.Serialize(writer, value, _payloadSerializerOptions);
Microsoft.AspNetCore.StaticAssets.Tests (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (18)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.DependencyModel (21)
DependencyContextWriter.cs (21)
26using (var jsonWriter = new Utf8JsonWriter(stream, options))
41private static void WriteRuntimeTargetInfo(DependencyContext context, Utf8JsonWriter jsonWriter)
59private static void WriteRuntimeGraph(DependencyContext context, Utf8JsonWriter jsonWriter)
74private static void WriteCompilationOptions(CompilationOptions compilationOptions, Utf8JsonWriter jsonWriter)
100private static void AddStringPropertyIfNotNull(string name, string? value, Utf8JsonWriter jsonWriter)
108private static void AddBooleanPropertyIfNotNull(string name, bool? value, Utf8JsonWriter jsonWriter)
116private static void WriteTargets(DependencyContext context, Utf8JsonWriter jsonWriter)
132private static void WriteTarget(string key, IReadOnlyList<Library> libraries, Utf8JsonWriter jsonWriter)
144private static void WritePortableTarget(string key, IReadOnlyList<RuntimeLibrary> runtimeLibraries, IReadOnlyList<CompilationLibrary> compilationLibraries, Utf8JsonWriter jsonWriter)
176private static void AddCompilationAssemblies(IEnumerable<string> compilationAssemblies, Utf8JsonWriter jsonWriter)
186private static void AddAssets(string key, RuntimeAssetGroup? group, Utf8JsonWriter jsonWriter)
196private static void AddDependencies(IReadOnlyCollection<Dependency> dependencies, Utf8JsonWriter jsonWriter)
211private static void AddResourceAssemblies(IReadOnlyList<ResourceAssembly> resourceAssemblies, Utf8JsonWriter jsonWriter)
230private static void WriteTargetLibrary(string key, Library library, Utf8JsonWriter jsonWriter)
258private static void WritePortableTargetLibrary(string key, RuntimeLibrary? runtimeLibrary, CompilationLibrary? compilationLibrary, Utf8JsonWriter jsonWriter)
306private static bool AddRuntimeSpecificAssetGroups(string assetType, IEnumerable<RuntimeAssetGroup> assetGroups, bool wroteObjectStart, Utf8JsonWriter jsonWriter)
347private static void AddRuntimeSpecificAssets(IEnumerable<RuntimeFile> assets, string? runtime, string? assetType, Utf8JsonWriter jsonWriter)
370private static void WriteAssetList(string key, IEnumerable<string> assetPaths, Utf8JsonWriter jsonWriter)
381private static void WriteAssetList(string key, IEnumerable<RuntimeFile> runtimeFiles, Utf8JsonWriter jsonWriter)
405private static void WriteLibraries(DependencyContext context, Utf8JsonWriter jsonWriter)
419private static void WriteLibrary(string key, Library library, Utf8JsonWriter jsonWriter)
Microsoft.Extensions.Logging.Console (3)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.JSInterop (7)
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)
Shared.Tests (2)
SignalRSamples (1)
System.Memory.Data (1)
System.Text.Json (243)
System\Text\Json\Serialization\Converters\CastingConverter.cs (5)
47public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
57internal override bool OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
66public override void WriteAsPropertyName(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options)
69internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, T value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
75internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, T? value, JsonNumberHandling handling)
System\Text\Json\Serialization\JsonConverter.cs (7)
189internal static bool ShouldFlush(ref WriteStack state, Utf8JsonWriter writer)
209internal abstract void WriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options);
210internal abstract bool OnTryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state);
211internal abstract bool TryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state);
212internal abstract void WriteAsPropertyNameAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options);
213internal abstract void WriteAsPropertyNameCoreAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, bool isWritingExtensionDataProperty);
214internal abstract void WriteNumberWithCustomHandlingAsObject(Utf8JsonWriter writer, object? value, JsonNumberHandling handling);
System\Text\Json\Serialization\JsonConverterOfT.cs (16)
77internal sealed override void WriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options)
84internal sealed override bool OnTryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state)
91internal sealed override void WriteAsPropertyNameAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options)
97internal sealed override void WriteAsPropertyNameCoreAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
103internal sealed override void WriteNumberWithCustomHandlingAsObject(Utf8JsonWriter writer, object? value, JsonNumberHandling handling)
110internal sealed override bool TryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state)
117internal virtual bool OnTryWrite(Utf8JsonWriter writer,
327internal bool TryWrite(Utf8JsonWriter writer, in T? value, JsonSerializerOptions options, ref WriteStack state)
445internal bool TryWriteDataExtensionProperty(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
558internal void VerifyWrite(int originalDepth, Utf8JsonWriter writer)
573/// <param name="writer">The <see cref="Utf8JsonWriter"/> to write to.</param>
577Utf8JsonWriter writer,
620/// <param name="writer">The <see cref="Utf8JsonWriter"/> to write to.</param>
624public virtual void WriteAsPropertyName(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options)
636internal virtual void WriteAsPropertyNameCore(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
686internal virtual void WriteNumberWithCustomHandling(Utf8JsonWriter writer, T? value, JsonNumberHandling handling)