37 types derived from JsonSerializerContext
Aspire.Confluent.Kafka (1)
Statistics.cs (1)
59internal sealed partial class StatisticsJsonSerializerContext : JsonSerializerContext
Aspire.Hosting (2)
Dashboard\DashboardLifecycleHook.cs (1)
428internal sealed partial class DashboardLogMessageContext : JsonSerializerContext
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
11internal sealed partial class LaunchSettingsSerializerContext : JsonSerializerContext
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
11internal sealed partial class LaunchSettingsSerializerContext : JsonSerializerContext
Aspire.Hosting.Nats.Tests (1)
AppEvent.cs (1)
12public partial class AppJsonContext : JsonSerializerContext
Aspire.Hosting.Testing (1)
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
11internal sealed partial class LaunchSettingsSerializerContext : JsonSerializerContext
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenJsonSerializerContext.cs (1)
9internal sealed partial class BearerTokenJsonSerializerContext : JsonSerializerContext
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
402internal sealed partial class TwitterJsonContext : JsonSerializerContext
Microsoft.AspNetCore.Components.Endpoints (3)
Assets\ImportMapSerializerContext.cs (1)
11internal partial class ImportMapSerializerContext : JsonSerializerContext
Builder\ResourceCollectionUrlEndpoint.cs (1)
156private partial class ResourceCollectionSerializerContext : JsonSerializerContext
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
77internal sealed partial class PrerenderComponentApplicationStoreSerializerContext : JsonSerializerContext;
Microsoft.AspNetCore.Components.Server (1)
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
77internal sealed partial class PrerenderComponentApplicationStoreSerializerContext : JsonSerializerContext;
Microsoft.AspNetCore.Components.Web (1)
WebRenderer.cs (1)
190internal sealed partial class WebRendererSerializerContext : JsonSerializerContext;
Microsoft.AspNetCore.Components.WebAssembly (2)
Infrastructure\WebAssemblyJsonSerializerContext.cs (1)
21internal sealed partial class WebAssemblyJsonSerializerContext : JsonSerializerContext;
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
77internal sealed partial class PrerenderComponentApplicationStoreSerializerContext : JsonSerializerContext;
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
328internal sealed partial class SourceGenerationContext : JsonSerializerContext
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
411internal sealed partial class ExtensionsExceptionJsonContext : JsonSerializerContext
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
328internal sealed partial class SourceGenerationContext : JsonSerializerContext
Microsoft.AspNetCore.Http.Extensions (1)
ProblemDetailsJsonContext.cs (1)
15internal sealed partial class ProblemDetailsJsonContext : JsonSerializerContext
Microsoft.AspNetCore.Http.Extensions.Tests (5)
ProblemDetailsDefaultWriterTest.cs (2)
716internal partial class CustomProblemDetailsContext : JsonSerializerContext 720internal partial class CustomProblemDetailsContext2 : JsonSerializerContext
ProblemDetailsServiceCollectionExtensionsTest.cs (1)
244internal partial class TestExtensionsJsonContext : JsonSerializerContext
RequestDelegateFactoryTests.cs (1)
1396private partial class TestJsonContext : JsonSerializerContext
RequestDelegateGenerator\SharedTypes.cs (1)
105public partial class SharedTestJsonContext : JsonSerializerContext
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
105public partial class SharedTestJsonContext : JsonSerializerContext
Microsoft.AspNetCore.Http.Results.Tests (3)
HttpResultsHelperTests.cs (1)
255private partial class TestJsonContext : JsonSerializerContext
ResultsTests.cs (1)
1788private partial class StringJsonContext : JsonSerializerContext
TypedResultsTests.cs (1)
1502private partial class ObjectJsonContext : JsonSerializerContext
Microsoft.AspNetCore.Identity (1)
Data\IdentityEndpointsJsonSerializerContext.cs (1)
18internal sealed partial class IdentityEndpointsJsonSerializerContext : JsonSerializerContext
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
315private partial class TestJsonContext : JsonSerializerContext
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
253private sealed partial class CustomJsonSerializerContext : JsonSerializerContext;
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiJsonSchemaContext.cs (1)
10internal sealed partial class OpenApiJsonSchemaContext : JsonSerializerContext { }
Microsoft.AspNetCore.SignalR.Tests (1)
NativeAotTests.cs (1)
443internal partial class AppJsonSerializerContext : JsonSerializerContext
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsManifestJsonContext.cs (1)
9internal partial class StaticAssetsManifestJsonContext : JsonSerializerContext
Microsoft.ML.Tokenizers (1)
Model\ModelSourceGenerationContext.cs (1)
12internal partial class ModelSourceGenerationContext : JsonSerializerContext;
Nats.Common (1)
AppEvent.cs (1)
12public partial class AppJsonContext : JsonSerializerContext
Wasm.Performance.TestApp (1)
PersonJsonContext.cs (1)
9internal sealed partial class PersonJsonContext : JsonSerializerContext
96 references to JsonSerializerContext
Microsoft.AspNetCore.Http.Extensions (4)
HttpRequestJsonExtensions.cs (1)
238JsonSerializerContext context,
HttpResponseJsonExtensions.cs (2)
313JsonSerializerContext context, 331static async Task WriteAsJsonAsyncSlow(PipeWriter body, object? value, Type type, JsonSerializerContext context,
src\Shared\Json\JsonSerializerExtensions.cs (1)
25public static JsonTypeInfo GetRequiredTypeInfo(this JsonSerializerContext context, Type type)
Microsoft.AspNetCore.Http.Results (4)
Results.cs (2)
219public static IResult Json(object? data, Type type, JsonSerializerContext context, string? contentType = null, int? statusCode = null) 273public static IResult Json<TValue>(TValue? data, JsonSerializerContext context, string? contentType = null, int? statusCode = null)
src\Shared\Json\JsonSerializerExtensions.cs (1)
25public static JsonTypeInfo GetRequiredTypeInfo(this JsonSerializerContext context, Type type)
TypedResults.cs (1)
231public static JsonHttpResult<TValue> Json<TValue>(TValue? data, JsonSerializerContext context, string? contentType = null, int? statusCode = null)
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
25public static JsonTypeInfo GetRequiredTypeInfo(this JsonSerializerContext context, Type type)
Microsoft.AspNetCore.Routing (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
25public static JsonTypeInfo GetRequiredTypeInfo(this JsonSerializerContext context, Type type)
System.Memory.Data (2)
System\BinaryData.cs (2)
103/// <param name="context">The <see cref="JsonSerializerContext" /> to use when serializing to JSON.</param> 107public BinaryData(object? jsonSerializable, JsonSerializerContext context, Type? type = default) : this(
System.Net.Http.Json (7)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
27private static Task<object?> FromJsonAsyncCore(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) =>
System\Net\Http\Json\HttpClientJsonExtensions.Delete.cs (2)
91public static Task<object?> DeleteFromJsonAsync(this HttpClient client, [StringSyntax(StringSyntaxAttribute.Uri)] string? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) => 104public static Task<object?> DeleteFromJsonAsync(this HttpClient client, Uri? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) =>
System\Net\Http\Json\HttpClientJsonExtensions.Get.cs (2)
41public static Task<object?> GetFromJsonAsync(this HttpClient client, [StringSyntax(StringSyntaxAttribute.Uri)] string? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) => 44public static Task<object?> GetFromJsonAsync(this HttpClient client, Uri? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) =>
System\Net\Http\Json\HttpContentJsonExtensions.cs (2)
108public static Task<object?> ReadFromJsonAsync(this HttpContent content, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) 128private static async Task<object?> ReadFromJsonAsyncCore(HttpContent content, Type type, JsonSerializerContext context, CancellationToken cancellationToken)
System.Text.Json (77)
src\libraries\System.Text.Json\Common\JsonSerializableAttribute.cs (1)
33/// the type on the generated, derived <see cref="JsonSerializerContext"/> type.
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
7/// Specifies compile-time source generator configuration when applied to <see cref="JsonSerializerContext"/> class declarations.
System\Text\Json\Serialization\Attributes\JsonRequiredAttribute.cs (1)
13/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>,
System\Text\Json\Serialization\JsonConverterOfT.cs (1)
667if (!IsInternalConverter && options.TypeInfoResolver is not JsonSerializerContext)
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (1)
53private static JsonTypeInfo GetTypeInfo(JsonSerializerContext context, Type inputType)
System\Text\Json\Serialization\JsonSerializer.Read.Document.cs (2)
173/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 176public static object? Deserialize(this JsonDocument document, Type returnType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Read.Element.cs (2)
145/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 148public static object? Deserialize(this JsonElement element, Type returnType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Read.Node.cs (2)
136/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 139public static object? Deserialize(this JsonNode? node, Type returnType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
133/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method on the provided <paramref name="context"/> 136public static object? Deserialize(ReadOnlySpan<byte> utf8Json, Type returnType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (4)
337/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method on the provided <paramref name="context"/> 343JsonSerializerContext context, 384/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method on the provided <paramref name="context"/> 390JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Read.String.cs (4)
351/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 357public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] string json, Type returnType, JsonSerializerContext context) 405/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 411public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, Type returnType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (2)
245/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method on the provided <paramref name="context"/> 271public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (2)
123/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 126public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (2)
114/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 120public static JsonDocument SerializeToDocument(object? value, Type inputType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (2)
114/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 120public static JsonElement SerializeToElement(object? value, Type inputType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Write.Node.cs (2)
115/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 121public static JsonNode? SerializeToNode(object? value, Type inputType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (1)
136JsonSerializerContext context,
System\Text\Json\Serialization\JsonSerializer.Write.Stream.cs (2)
304JsonSerializerContext context, 342JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (4)
133/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 140/// encoding since the implementation internally uses UTF-8. See also <see cref="SerializeToUtf8Bytes(object?, Type, JsonSerializerContext)"/> 141/// and <see cref="SerializeAsync(IO.Stream, object?, Type, JsonSerializerContext, Threading.CancellationToken)"/>. 143public static string Serialize(object? value, Type inputType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializer.Write.Utf8JsonWriter.cs (2)
147/// The <see cref="JsonSerializerContext.GetTypeInfo(Type)"/> method of the provided 150public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, JsonSerializerContext context)
System\Text\Json\Serialization\JsonSerializerContext.cs (1)
87/// Creates an instance of <see cref="JsonSerializerContext"/> and binds it with the indicated <see cref="JsonSerializerOptions"/>.
System\Text\Json\Serialization\JsonSerializerOptions.cs (5)
196/// Binds current <see cref="JsonSerializerOptions"/> instance with a new instance of the specified <see cref="Serialization.JsonSerializerContext"/> type. 205public void AddContext<TContext>() where TContext : JsonSerializerContext, new() 864/// has been associated with a <see cref="JsonSerializerContext"/> instance, 941case JsonSerializerContext ctx when AppContextSwitchHelper.IsSourceGenReflectionFallbackEnabled: 1070ThrowHelper.ThrowInvalidOperationException_SerializerOptionsReadOnly(_typeInfoResolver as JsonSerializerContext);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (3)
134internal static void PopulateProperties(JsonTypeInfo typeInfo, JsonTypeInfo.JsonPropertyInfoList propertyList, Func<JsonSerializerContext, JsonPropertyInfo[]> propInitFunc) 141JsonSerializerContext? context = typeInfo.Options.TypeInfoResolver as JsonSerializerContext;
System\Text\Json\Serialization\Metadata\JsonObjectInfoValuesOfT.cs (1)
33public Func<JsonSerializerContext, JsonPropertyInfo[]>? PropertyMetadataInitializer { get; init; }
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (1)
66/// Contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>,
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (8)
239/// Contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 275/// Contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 314/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 342/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 347/// <see langword="required"/> keyword is currently not supported in <see cref="JsonSerializerContext"/> contracts. 785/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 833/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 1020/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>,
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (14)
87/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 116/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 146/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 176/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 212/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 273internal Func<JsonSerializerContext, JsonPropertyInfo[]>? SourceGenDelayedPropertyInitializer 284private Func<JsonSerializerContext, JsonPropertyInfo[]>? _sourceGenDelayedPropertyInitializer; 301/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 336/// has been associated with a <see cref="JsonSerializerContext"/> instance, 495/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 531/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 575/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>, 606/// Metadata used to determine the <see cref="JsonSerializerContext.GeneratedSerializerOptions"/> 617if (value is JsonSerializerContext)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
45/// For contracts originating from <see cref="DefaultJsonTypeInfoResolver"/> or <see cref="JsonSerializerContext"/>,
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (2)
22/// Can be used to combine multiple <see cref="JsonSerializerContext"/> sources, 46/// Can be used to combine multiple <see cref="JsonSerializerContext"/> sources,
System\Text\Json\ThrowHelper.Serialization.cs (1)
233public static void ThrowInvalidOperationException_SerializerOptionsReadOnly(JsonSerializerContext? context)