472 instantiations of JsonSerializable
aspire (24)
Backchannel\BackchannelJsonSerializerContext.cs (22)
14[JsonSerializable(typeof(string[]))] 15[JsonSerializable(typeof(bool))] 16[JsonSerializable(typeof(long))] 17[JsonSerializable(typeof(DashboardUrlsState))] 18[JsonSerializable(typeof(JsonElement))] 19[JsonSerializable(typeof(IAsyncEnumerable<RpcResourceState>))] 20[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<RpcResourceState>))] 21[JsonSerializable(typeof(IAsyncEnumerable<BackchannelLogEntry>))] 22[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<BackchannelLogEntry>))] 23[JsonSerializable(typeof(IAsyncEnumerable<PublishingActivity>))] 24[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<PublishingActivity>))] 25[JsonSerializable(typeof(RequestId))] 26[JsonSerializable(typeof(IEnumerable<DisplayLineState>))] 27[JsonSerializable(typeof(PublishingPromptInputAnswer[]))] 28[JsonSerializable(typeof(ValidationResult))] 29[JsonSerializable(typeof(IAsyncEnumerable<CommandOutput>))] 30[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<CommandOutput>))] 31[JsonSerializable(typeof(EnvVar))] 32[JsonSerializable(typeof(List<EnvVar>))] 33[JsonSerializable(typeof(List<string>))] 34[JsonSerializable(typeof(bool?))] 35[JsonSerializable(typeof(AppHostProjectSearchResultPoco))]
JsonSourceGenerationContext.cs (2)
10[JsonSerializable(typeof(CliSettings))] 11[JsonSerializable(typeof(JsonObject))]
Aspire.Confluent.Kafka (1)
Statistics.cs (1)
57[JsonSerializable(typeof(Statistics))]
Aspire.Dashboard (16)
Mcp\McpInstallButtonServerModel.cs (5)
31[JsonSerializable(typeof(McpInstallButtonServerModel))] 32[JsonSerializable(typeof(Dictionary<string, string>))] 36[JsonSerializable(typeof(McpJsonFileServerModel))] 37[JsonSerializable(typeof(McpJsonFileServerInstanceModel))] 38[JsonSerializable(typeof(Dictionary<string, string>))]
Model\GenAI\GenAIEvents.cs (4)
48[JsonSerializable(typeof(SystemOrUserEvent))] 49[JsonSerializable(typeof(AssistantEvent))] 50[JsonSerializable(typeof(ToolEvent))] 51[JsonSerializable(typeof(ChoiceEvent))]
Model\GenAI\GenAIMessages.cs (7)
116[JsonSerializable(typeof(MessagePart))] 117[JsonSerializable(typeof(TextPart))] 118[JsonSerializable(typeof(ToolCallRequestPart))] 119[JsonSerializable(typeof(ToolCallResponsePart))] 120[JsonSerializable(typeof(GenericPart))] 121[JsonSerializable(typeof(ChatMessage))] 122[JsonSerializable(typeof(List<ChatMessage>))]
Aspire.Hosting (2)
Dashboard\DashboardEventHandlers.cs (1)
895[JsonSerializable(typeof(DashboardLogMessage))]
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
9[JsonSerializable(typeof(LaunchSettings))]
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
9[JsonSerializable(typeof(LaunchSettings))]
Aspire.Hosting.Nats.Tests (1)
AppEvent.cs (1)
10[JsonSerializable(typeof(AppEvent))]
Aspire.Hosting.Testing (1)
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
9[JsonSerializable(typeof(LaunchSettings))]
dotnet (4)
Commands\Run\Api\RunApiCommand.cs (2)
163[JsonSerializable(typeof(RunApiInput))] 164[JsonSerializable(typeof(RunApiOutput))]
Commands\Run\VirtualProjectBuildingCommand.cs (2)
2040[JsonSerializable(typeof(RunFileBuildCacheEntry))] 2041[JsonSerializable(typeof(RunFileArtifactsMetadata))]
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenJsonSerializerContext.cs (1)
8[JsonSerializable(typeof(AccessTokenResponse))]
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
401[JsonSerializable(typeof(TwitterErrorResponse))]
Microsoft.AspNetCore.Components.Endpoints (4)
Assets\ImportMapSerializerContext.cs (1)
10[JsonSerializable(typeof(ImportMapDefinition))]
Builder\ResourceCollectionUrlEndpoint.cs (2)
153[JsonSerializable(typeof(ResourceAssetCollection))] 154[JsonSerializable(typeof(IReadOnlyList<ResourceAsset>))]
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
76[JsonSerializable(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitPersistenceManager.cs (1)
231[JsonSerializable(typeof(Dictionary<int, ComponentMarker>))]
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
76[JsonSerializable(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
Microsoft.AspNetCore.Components.Web (4)
WebRenderer.cs (4)
186[JsonSerializable(typeof(object[]))] 187[JsonSerializable(typeof(int))] 188[JsonSerializable(typeof(Dictionary<string, JSComponentConfigurationStore.JSComponentParameter[]>))] 189[JsonSerializable(typeof(Dictionary<string, List<string>>))]
Microsoft.AspNetCore.Components.WebAssembly (5)
Infrastructure\WebAssemblyJsonSerializerContext.cs (4)
15[JsonSerializable(typeof(ComponentParameter[]))] 16[JsonSerializable(typeof(JsonElement))] 17[JsonSerializable(typeof(IList<object>))] 20[JsonSerializable(typeof(RootComponentOperationBatch))]
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
76[JsonSerializable(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
326[JsonSerializable(typeof(StaticWebAssetManifest))] 327[JsonSerializable(typeof(IDictionary<string, StaticWebAssetNode>))]
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
410[JsonSerializable(typeof(ExceptionExtensionData))]
Microsoft.AspNetCore.Hosting (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
326[JsonSerializable(typeof(StaticWebAssetManifest))] 327[JsonSerializable(typeof(IDictionary<string, StaticWebAssetNode>))]
Microsoft.AspNetCore.Http.Extensions (3)
ProblemDetailsJsonContext.cs (3)
10[JsonSerializable(typeof(ProblemDetails))] 11[JsonSerializable(typeof(HttpValidationProblemDetails))] 14[JsonSerializable(typeof(JsonElement))]
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
103[JsonSerializable(typeof(Todo))] 104[JsonSerializable(typeof(IAsyncEnumerable<JsonTodo>))]
Microsoft.AspNetCore.Http.Results.Tests (8)
HttpResultsHelperTests.cs (6)
249[JsonSerializable(typeof(Todo))] 250[JsonSerializable(typeof(TodoChild))] 251[JsonSerializable(typeof(JsonTodo))] 252[JsonSerializable(typeof(TodoStruct))] 253[JsonSerializable(typeof(IAsyncEnumerable<JsonTodo>))] 254[JsonSerializable(typeof(JsonTodo[]))]
ResultsTests.cs (1)
1788[JsonSerializable(typeof(string))]
TypedResultsTests.cs (1)
1501[JsonSerializable(typeof(object))]
Microsoft.AspNetCore.Identity (17)
Data\IdentityEndpointsJsonSerializerContext.cs (10)
8[JsonSerializable(typeof(RegisterRequest))] 9[JsonSerializable(typeof(LoginRequest))] 10[JsonSerializable(typeof(RefreshRequest))] 11[JsonSerializable(typeof(ResetPasswordRequest))] 12[JsonSerializable(typeof(ForgotPasswordRequest))] 13[JsonSerializable(typeof(ResendConfirmationEmailRequest))] 14[JsonSerializable(typeof(InfoRequest))] 15[JsonSerializable(typeof(InfoResponse))] 16[JsonSerializable(typeof(TwoFactorRequest))] 17[JsonSerializable(typeof(TwoFactorResponse))]
IdentityJsonSerializerContext.cs (7)
9[JsonSerializable(typeof(CollectedClientData))] 10[JsonSerializable(typeof(PublicKeyCredentialCreationOptions))] 11[JsonSerializable(typeof(PublicKeyCredentialRequestOptions))] 12[JsonSerializable(typeof(PublicKeyCredential<AuthenticatorAssertionResponse>))] 13[JsonSerializable(typeof(PublicKeyCredential<AuthenticatorAttestationResponse>))] 14[JsonSerializable(typeof(PasskeyAttestationState))] 15[JsonSerializable(typeof(PasskeyAssertionState))]
Microsoft.AspNetCore.Mvc.Core.Test (2)
Formatters\SystemTextJsonOutputFormatterTest.cs (2)
313[JsonSerializable(typeof(JsonPerson))] 314[JsonSerializable(typeof(IAsyncEnumerable<JsonPerson>))]
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
404[JsonSerializable(typeof(IDictionary<string, string>))]
Microsoft.AspNetCore.OpenApi (3)
Schemas\OpenApiJsonSchemaContext.cs (3)
9[JsonSerializable(typeof(OpenApiJsonSchema))] 10[JsonSerializable(typeof(string))] 11[JsonSerializable(typeof(JsonNode))]
Microsoft.AspNetCore.SignalR.Tests (5)
NativeAotTests.cs (5)
438[JsonSerializable(typeof(object))] 439[JsonSerializable(typeof(string))] 440[JsonSerializable(typeof(int))] 441[JsonSerializable(typeof(short))] 442[JsonSerializable(typeof(char))]
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsManifestJsonContext.cs (1)
8[JsonSerializable(typeof(StaticAssetsManifest))]
Microsoft.CodeAnalysis.LanguageServer (3)
FileBasedPrograms\RunApiModels.cs (3)
84[JsonSerializable(typeof(RunApiInput))] 85[JsonSerializable(typeof(RunApiOutput))] 86[JsonSerializable(typeof(LinePositionSpanInternal))]
Microsoft.DotNet.HotReload.WebAssembly.Browser (2)
WebAssemblyHotReload.cs (2)
174[JsonSerializable(typeof(WebAssemblyHotReload.Delta[]))] 175[JsonSerializable(typeof(WebAssemblyHotReload.LogEntry[]))]
Microsoft.Extensions.AI (9)
ChatCompletion\OpenTelemetryChatClient.cs (9)
713[JsonSerializable(typeof(IList<object>))] 714[JsonSerializable(typeof(OtelMessage))] 715[JsonSerializable(typeof(OtelGenericPart))] 716[JsonSerializable(typeof(OtelBlobPart))] 717[JsonSerializable(typeof(OtelUriPart))] 718[JsonSerializable(typeof(OtelFilePart))] 719[JsonSerializable(typeof(OtelToolCallRequestPart))] 720[JsonSerializable(typeof(OtelToolCallResponsePart))] 721[JsonSerializable(typeof(IEnumerable<OtelFunction>))]
Microsoft.Extensions.AI.Abstractions (61)
Utilities\AIJsonUtilities.Defaults.cs (61)
82[JsonSerializable(typeof(JsonDocument))] 83[JsonSerializable(typeof(JsonElement))] 84[JsonSerializable(typeof(JsonNode))] 85[JsonSerializable(typeof(JsonObject))] 86[JsonSerializable(typeof(JsonValue))] 87[JsonSerializable(typeof(JsonArray))] 90[JsonSerializable(typeof(string))] 91[JsonSerializable(typeof(char))] 92[JsonSerializable(typeof(short))] 93[JsonSerializable(typeof(ushort))] 94[JsonSerializable(typeof(int))] 95[JsonSerializable(typeof(uint))] 96[JsonSerializable(typeof(long))] 97[JsonSerializable(typeof(ulong))] 98[JsonSerializable(typeof(float))] 99[JsonSerializable(typeof(double))] 100[JsonSerializable(typeof(decimal))] 101[JsonSerializable(typeof(bool))] 102[JsonSerializable(typeof(TimeSpan))] 103[JsonSerializable(typeof(DateTime))] 104[JsonSerializable(typeof(DateTimeOffset))] 107[JsonSerializable(typeof(AIFunctionArguments))] 110[JsonSerializable(typeof(IEnumerable<ChatMessage>))] 111[JsonSerializable(typeof(IList<ChatMessage>))] 112[JsonSerializable(typeof(ChatMessage[]))] 113[JsonSerializable(typeof(ChatOptions))] 114[JsonSerializable(typeof(ChatClientMetadata))] 115[JsonSerializable(typeof(ChatResponse))] 116[JsonSerializable(typeof(ChatResponseUpdate))] 117[JsonSerializable(typeof(IReadOnlyList<ChatResponseUpdate>))] 118[JsonSerializable(typeof(Dictionary<string, object>))] 119[JsonSerializable(typeof(IDictionary<string, object?>))] 120[JsonSerializable(typeof(IEnumerable<string>))] 121[JsonSerializable(typeof(AIContent))] 122[JsonSerializable(typeof(IEnumerable<AIContent>))] 126[JsonSerializable(typeof(UserInputRequestContent))] 127[JsonSerializable(typeof(UserInputResponseContent))] 128[JsonSerializable(typeof(FunctionApprovalRequestContent))] 129[JsonSerializable(typeof(FunctionApprovalResponseContent))] 130[JsonSerializable(typeof(McpServerToolCallContent))] 131[JsonSerializable(typeof(McpServerToolResultContent))] 132[JsonSerializable(typeof(McpServerToolApprovalRequestContent))] 133[JsonSerializable(typeof(McpServerToolApprovalResponseContent))] 134[JsonSerializable(typeof(CodeInterpreterToolCallContent))] 135[JsonSerializable(typeof(CodeInterpreterToolResultContent))] 136[JsonSerializable(typeof(ResponseContinuationToken))] 139[JsonSerializable(typeof(EmbeddingGenerationOptions))] 140[JsonSerializable(typeof(EmbeddingGeneratorMetadata))] 141[JsonSerializable(typeof(Embedding))] 142[JsonSerializable(typeof(Embedding<byte>))] 143[JsonSerializable(typeof(Embedding<int>))] 147[JsonSerializable(typeof(Embedding<float>))] 148[JsonSerializable(typeof(Embedding<double>))] 151[JsonSerializable(typeof(SpeechToTextOptions))] 152[JsonSerializable(typeof(SpeechToTextClientMetadata))] 153[JsonSerializable(typeof(SpeechToTextResponse))] 154[JsonSerializable(typeof(SpeechToTextResponseUpdate))] 155[JsonSerializable(typeof(IReadOnlyList<SpeechToTextResponseUpdate>))] 158[JsonSerializable(typeof(ImageGenerationOptions))] 159[JsonSerializable(typeof(ImageGenerationResponse))] 168[JsonSerializable(typeof(JsonNode))]
Microsoft.Extensions.AI.Abstractions.Tests (131)
test\Shared\JsonSchemaExporter\SchemaTestHelpers.cs (3)
77[JsonSerializable(typeof(string))] 78[JsonSerializable(typeof(JsonNode))] 79[JsonSerializable(typeof(JsonSchema))]
test\Shared\JsonSchemaExporter\TestTypes.cs (94)
1210[JsonSerializable(typeof(object))] 1211[JsonSerializable(typeof(bool))] 1212[JsonSerializable(typeof(byte))] 1213[JsonSerializable(typeof(ushort))] 1214[JsonSerializable(typeof(uint))] 1215[JsonSerializable(typeof(ulong))] 1216[JsonSerializable(typeof(sbyte))] 1217[JsonSerializable(typeof(short))] 1218[JsonSerializable(typeof(int))] 1219[JsonSerializable(typeof(long))] 1220[JsonSerializable(typeof(float))] 1221[JsonSerializable(typeof(double))] 1222[JsonSerializable(typeof(decimal))] 1224[JsonSerializable(typeof(UInt128))] 1225[JsonSerializable(typeof(Int128))] 1228[JsonSerializable(typeof(Half))] 1230[JsonSerializable(typeof(string))] 1231[JsonSerializable(typeof(char))] 1232[JsonSerializable(typeof(byte[]))] 1233[JsonSerializable(typeof(Memory<byte>))] 1234[JsonSerializable(typeof(ReadOnlyMemory<byte>))] 1235[JsonSerializable(typeof(DateTime))] 1236[JsonSerializable(typeof(DateTimeOffset))] 1237[JsonSerializable(typeof(TimeSpan))] 1239[JsonSerializable(typeof(DateOnly))] 1240[JsonSerializable(typeof(TimeOnly))] 1242[JsonSerializable(typeof(Guid))] 1243[JsonSerializable(typeof(Uri))] 1244[JsonSerializable(typeof(Version))] 1245[JsonSerializable(typeof(JsonDocument))] 1246[JsonSerializable(typeof(JsonElement))] 1247[JsonSerializable(typeof(JsonNode))] 1248[JsonSerializable(typeof(JsonValue))] 1249[JsonSerializable(typeof(JsonObject))] 1250[JsonSerializable(typeof(JsonArray))] 1252[JsonSerializable(typeof(IntEnum))] 1253[JsonSerializable(typeof(StringEnum))] 1254[JsonSerializable(typeof(FlagsStringEnum))] 1256[JsonSerializable(typeof(bool?))] 1257[JsonSerializable(typeof(int?))] 1258[JsonSerializable(typeof(double?))] 1259[JsonSerializable(typeof(Guid?))] 1260[JsonSerializable(typeof(JsonElement?))] 1261[JsonSerializable(typeof(IntEnum?))] 1262[JsonSerializable(typeof(StringEnum?))] 1263[JsonSerializable(typeof(SimpleRecordStruct?))] 1264[JsonSerializable(typeof(DateTimeOffset?))] 1266[JsonSerializable(typeof(SimplePoco))] 1267[JsonSerializable(typeof(SimpleRecord))] 1268[JsonSerializable(typeof(SimpleRecordStruct))] 1269[JsonSerializable(typeof(RecordWithOptionalParameters))] 1270[JsonSerializable(typeof(PocoWithRequiredMembers))] 1271[JsonSerializable(typeof(PocoWithIgnoredMembers))] 1272[JsonSerializable(typeof(PocoWithCustomNaming))] 1273[JsonSerializable(typeof(PocoWithCustomNumberHandling))] 1274[JsonSerializable(typeof(PocoWithCustomNumberHandlingOnProperties))] 1275[JsonSerializable(typeof(PocoWithRecursiveMembers))] 1276[JsonSerializable(typeof(PocoWithNonRecursiveDuplicateOccurrences))] 1277[JsonSerializable(typeof(PocoWithDescription))] 1278[JsonSerializable(typeof(PocoWithCustomConverter))] 1279[JsonSerializable(typeof(PocoWithCustomPropertyConverter))] 1280[JsonSerializable(typeof(PocoWithEnums))] 1281[JsonSerializable(typeof(PocoWithStructFollowedByNullableStruct))] 1282[JsonSerializable(typeof(PocoWithNullableStructFollowedByStruct))] 1283[JsonSerializable(typeof(PocoWithExtensionDataProperty))] 1284[JsonSerializable(typeof(PocoDisallowingUnmappedMembers))] 1285[JsonSerializable(typeof(PocoWithNullableAnnotationAttributes))] 1286[JsonSerializable(typeof(PocoWithNullableAnnotationAttributesOnConstructorParams))] 1287[JsonSerializable(typeof(PocoWithNullableConstructorParameter))] 1288[JsonSerializable(typeof(PocoWithOptionalConstructorParams))] 1289[JsonSerializable(typeof(GenericPocoWithNullableConstructorParameter<string>))] 1290[JsonSerializable(typeof(PocoWithPolymorphism))] 1291[JsonSerializable(typeof(NonAbstractClassWithSingleDerivedType))] 1292[JsonSerializable(typeof(PocoCombiningPolymorphicTypeAndDerivedTypes))] 1293[JsonSerializable(typeof(ClassWithComponentModelAttributes))] 1294[JsonSerializable(typeof(ClassWithOptionalObjectParameter))] 1295[JsonSerializable(typeof(ClassWithPropertiesUsingCustomConverters))] 1297[JsonSerializable(typeof(int[]))] 1298[JsonSerializable(typeof(List<bool>))] 1299[JsonSerializable(typeof(HashSet<string>))] 1300[JsonSerializable(typeof(Queue<double>))] 1301[JsonSerializable(typeof(Stack<char>))] 1302[JsonSerializable(typeof(ImmutableArray<int>))] 1303[JsonSerializable(typeof(ImmutableList<string>))] 1304[JsonSerializable(typeof(ImmutableQueue<bool>))] 1305[JsonSerializable(typeof(object[]))] 1306[JsonSerializable(typeof(System.Collections.ArrayList))] 1307[JsonSerializable(typeof(Dictionary<string, int>))] 1308[JsonSerializable(typeof(SortedDictionary<int, string>))] 1309[JsonSerializable(typeof(Dictionary<string, SimplePoco>))] 1310[JsonSerializable(typeof(Dictionary<string, object>))] 1311[JsonSerializable(typeof(Hashtable))] 1312[JsonSerializable(typeof(StructDictionary<string, int>))] 1313[JsonSerializable(typeof(XElement))]
TestJsonSerializerContext.cs (27)
17[JsonSerializable(typeof(ChatResponse))] 18[JsonSerializable(typeof(ChatResponseUpdate))] 19[JsonSerializable(typeof(SpeechToTextResponse))] 20[JsonSerializable(typeof(SpeechToTextResponseUpdate))] 21[JsonSerializable(typeof(SpeechToTextResponseUpdateKind))] 22[JsonSerializable(typeof(SpeechToTextOptions))] 23[JsonSerializable(typeof(ImageGenerationResponse))] 24[JsonSerializable(typeof(ImageGenerationOptions))] 25[JsonSerializable(typeof(ChatOptions))] 26[JsonSerializable(typeof(EmbeddingGenerationOptions))] 27[JsonSerializable(typeof(Dictionary<string, object?>))] 28[JsonSerializable(typeof(AIFunctionArguments))] 29[JsonSerializable(typeof(int[]))] // Used in ChatMessageContentTests 30[JsonSerializable(typeof(Embedding))] // Used in EmbeddingTests 31[JsonSerializable(typeof(Dictionary<string, JsonDocument>))] // Used in Content tests 32[JsonSerializable(typeof(Dictionary<string, JsonNode>))] // Used in Content tests 33[JsonSerializable(typeof(Dictionary<string, string>))] // Used in Content tests 34[JsonSerializable(typeof(ReadOnlyDictionary<string, string>))] // Used in Content tests 35[JsonSerializable(typeof(DayOfWeek[]))] // Used in Content tests 36[JsonSerializable(typeof(Guid))] // Used in Content tests 37[JsonSerializable(typeof(decimal))] // Used in Content tests 38[JsonSerializable(typeof(HostedMcpServerToolApprovalMode))] 39[JsonSerializable(typeof(ChatResponseFormatTests.SomeType))] 40[JsonSerializable(typeof(ChatResponseFormatTests.TypeWithDisplayName))] 41[JsonSerializable(typeof(ResponseContinuationToken))] 42[JsonSerializable(typeof(UserInputRequestContent[]))] 43[JsonSerializable(typeof(UserInputResponseContent[]))]
Utilities\AIJsonUtilitiesTests.cs (7)
1423[JsonSerializable(typeof(JsonElement))] 1424[JsonSerializable(typeof(CreateJsonSchema_IncorporatesTypesAndAnnotations_Type))] 1425[JsonSerializable(typeof(DerivedAIContent))] 1426[JsonSerializable(typeof(MyPoco))] 1427[JsonSerializable(typeof(MyEnumValue?))] 1428[JsonSerializable(typeof(object[]))] 1429[JsonSerializable(typeof(ClassWithNullableMaxLengthProperty))]
Microsoft.Extensions.AI.AzureAIInference (1)
JsonContext.cs (1)
14[JsonSerializable(typeof(AzureAIChatToolJson))]
Microsoft.Extensions.AI.Evaluation.Quality (2)
JsonSerialization\SerializerContext.cs (2)
12[JsonSerializable(typeof(RelevanceTruthAndCompletenessRating))] 13[JsonSerializable(typeof(IntentResolutionRating))]
Microsoft.Extensions.AI.Evaluation.Reporting (3)
JsonSerialization\JsonUtilities.cs (3)
43[JsonSerializable(typeof(ScenarioRunResult))] 44[JsonSerializable(typeof(Dataset))] 45[JsonSerializable(typeof(CacheEntry))]
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
JsonSerialization\AzureStorageJsonUtilities.cs (2)
40[JsonSerializable(typeof(ScenarioRunResult))] 41[JsonSerializable(typeof(CacheEntry))]
Microsoft.Extensions.AI.OpenAI (7)
OpenAIJsonContext.cs (7)
15[JsonSerializable(typeof(OpenAIClientExtensions.ToolJson))] 16[JsonSerializable(typeof(IDictionary<string, object?>))] 17[JsonSerializable(typeof(IReadOnlyDictionary<string, object?>))] 18[JsonSerializable(typeof(string[]))] 19[JsonSerializable(typeof(IEnumerable<string>))] 20[JsonSerializable(typeof(JsonElement))] 21[JsonSerializable(typeof(List<OpenAIResponsesChatClient.FunctionToolCallOutputElement>))]
Microsoft.Extensions.AI.Tests (29)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (4)
464[JsonSerializable(typeof(Animal))] 465[JsonSerializable(typeof(Envelope<int>))] 466[JsonSerializable(typeof(Envelope<Animal[]>))] 467[JsonSerializable(typeof(Data<Animal>))]
ChatCompletion\CustomAIContentJsonContext.cs (2)
8[JsonSerializable(typeof(DistributedCachingChatClientTest.CustomAIContent1))] 9[JsonSerializable(typeof(DistributedCachingChatClientTest.CustomAIContent2))]
Functions\AIFunctionFactoryTest.cs (8)
1317[JsonSerializable(typeof(IAsyncEnumerable<int>))] 1318[JsonSerializable(typeof(int[]))] 1319[JsonSerializable(typeof(string))] 1320[JsonSerializable(typeof(Guid))] 1321[JsonSerializable(typeof(StructWithDefaultCtor))] 1322[JsonSerializable(typeof(B))] 1323[JsonSerializable(typeof(int?))] 1324[JsonSerializable(typeof(DateTime?))]
TestJsonSerializerContext.cs (15)
13[JsonSerializable(typeof(ChatResponse))] 14[JsonSerializable(typeof(IList<ChatMessage>))] 15[JsonSerializable(typeof(IReadOnlyList<ChatResponseUpdate>))] 18[JsonSerializable(typeof(bool))] 19[JsonSerializable(typeof(double))] 20[JsonSerializable(typeof(JsonElement))] 21[JsonSerializable(typeof(Embedding<float>))] 22[JsonSerializable(typeof(Dictionary<string, JsonDocument>))] 23[JsonSerializable(typeof(Dictionary<string, JsonNode>))] 24[JsonSerializable(typeof(Dictionary<string, object>))] 25[JsonSerializable(typeof(Dictionary<string, string>))] 26[JsonSerializable(typeof(DayOfWeek[]))] 27[JsonSerializable(typeof(Guid))] 28[JsonSerializable(typeof(ChatOptions))] 29[JsonSerializable(typeof(EmbeddingGenerationOptions))]
Microsoft.Maui (2)
Handlers\HybridWebView\HybridWebViewHandler.cs (2)
311 [JsonSerializable(typeof(JSInvokeMethodData))] 312 [JsonSerializable(typeof(JSInvokeError))]
Microsoft.ML.Tokenizers (2)
Model\ModelSourceGenerationContext.cs (2)
10[JsonSerializable(typeof(Dictionary<StringSpanOrdinalKey, int>))] 11[JsonSerializable(typeof(Vocabulary))]
Microsoft.NET.Sdk.StaticWebAssets.Tasks (5)
Data\Serialization\StaticWebAssetsJsonSerializerContext.cs (3)
10[JsonSerializable(typeof(StaticWebAssetsManifest))] 11[JsonSerializable(typeof(GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetsDevelopmentManifest))] 12[JsonSerializable(typeof(StaticWebAssetEndpointsManifest))]
DefineStaticWebAssets.Cache.cs (1)
275[JsonSerializable(typeof(DefineStaticWebAssetsCache))]
OverrideHtmlAssetPlaceholders.cs (1)
303[JsonSerializable(typeof(ImportMap))]
Nats.Common (1)
AppEvent.cs (1)
10[JsonSerializable(typeof(AppEvent))]
Shared.Tests (97)
JsonSchemaExporter\SchemaTestHelpers.cs (3)
77[JsonSerializable(typeof(string))] 78[JsonSerializable(typeof(JsonNode))] 79[JsonSerializable(typeof(JsonSchema))]
JsonSchemaExporter\TestTypes.cs (94)
1210[JsonSerializable(typeof(object))] 1211[JsonSerializable(typeof(bool))] 1212[JsonSerializable(typeof(byte))] 1213[JsonSerializable(typeof(ushort))] 1214[JsonSerializable(typeof(uint))] 1215[JsonSerializable(typeof(ulong))] 1216[JsonSerializable(typeof(sbyte))] 1217[JsonSerializable(typeof(short))] 1218[JsonSerializable(typeof(int))] 1219[JsonSerializable(typeof(long))] 1220[JsonSerializable(typeof(float))] 1221[JsonSerializable(typeof(double))] 1222[JsonSerializable(typeof(decimal))] 1224[JsonSerializable(typeof(UInt128))] 1225[JsonSerializable(typeof(Int128))] 1228[JsonSerializable(typeof(Half))] 1230[JsonSerializable(typeof(string))] 1231[JsonSerializable(typeof(char))] 1232[JsonSerializable(typeof(byte[]))] 1233[JsonSerializable(typeof(Memory<byte>))] 1234[JsonSerializable(typeof(ReadOnlyMemory<byte>))] 1235[JsonSerializable(typeof(DateTime))] 1236[JsonSerializable(typeof(DateTimeOffset))] 1237[JsonSerializable(typeof(TimeSpan))] 1239[JsonSerializable(typeof(DateOnly))] 1240[JsonSerializable(typeof(TimeOnly))] 1242[JsonSerializable(typeof(Guid))] 1243[JsonSerializable(typeof(Uri))] 1244[JsonSerializable(typeof(Version))] 1245[JsonSerializable(typeof(JsonDocument))] 1246[JsonSerializable(typeof(JsonElement))] 1247[JsonSerializable(typeof(JsonNode))] 1248[JsonSerializable(typeof(JsonValue))] 1249[JsonSerializable(typeof(JsonObject))] 1250[JsonSerializable(typeof(JsonArray))] 1252[JsonSerializable(typeof(IntEnum))] 1253[JsonSerializable(typeof(StringEnum))] 1254[JsonSerializable(typeof(FlagsStringEnum))] 1256[JsonSerializable(typeof(bool?))] 1257[JsonSerializable(typeof(int?))] 1258[JsonSerializable(typeof(double?))] 1259[JsonSerializable(typeof(Guid?))] 1260[JsonSerializable(typeof(JsonElement?))] 1261[JsonSerializable(typeof(IntEnum?))] 1262[JsonSerializable(typeof(StringEnum?))] 1263[JsonSerializable(typeof(SimpleRecordStruct?))] 1264[JsonSerializable(typeof(DateTimeOffset?))] 1266[JsonSerializable(typeof(SimplePoco))] 1267[JsonSerializable(typeof(SimpleRecord))] 1268[JsonSerializable(typeof(SimpleRecordStruct))] 1269[JsonSerializable(typeof(RecordWithOptionalParameters))] 1270[JsonSerializable(typeof(PocoWithRequiredMembers))] 1271[JsonSerializable(typeof(PocoWithIgnoredMembers))] 1272[JsonSerializable(typeof(PocoWithCustomNaming))] 1273[JsonSerializable(typeof(PocoWithCustomNumberHandling))] 1274[JsonSerializable(typeof(PocoWithCustomNumberHandlingOnProperties))] 1275[JsonSerializable(typeof(PocoWithRecursiveMembers))] 1276[JsonSerializable(typeof(PocoWithNonRecursiveDuplicateOccurrences))] 1277[JsonSerializable(typeof(PocoWithDescription))] 1278[JsonSerializable(typeof(PocoWithCustomConverter))] 1279[JsonSerializable(typeof(PocoWithCustomPropertyConverter))] 1280[JsonSerializable(typeof(PocoWithEnums))] 1281[JsonSerializable(typeof(PocoWithStructFollowedByNullableStruct))] 1282[JsonSerializable(typeof(PocoWithNullableStructFollowedByStruct))] 1283[JsonSerializable(typeof(PocoWithExtensionDataProperty))] 1284[JsonSerializable(typeof(PocoDisallowingUnmappedMembers))] 1285[JsonSerializable(typeof(PocoWithNullableAnnotationAttributes))] 1286[JsonSerializable(typeof(PocoWithNullableAnnotationAttributesOnConstructorParams))] 1287[JsonSerializable(typeof(PocoWithNullableConstructorParameter))] 1288[JsonSerializable(typeof(PocoWithOptionalConstructorParams))] 1289[JsonSerializable(typeof(GenericPocoWithNullableConstructorParameter<string>))] 1290[JsonSerializable(typeof(PocoWithPolymorphism))] 1291[JsonSerializable(typeof(NonAbstractClassWithSingleDerivedType))] 1292[JsonSerializable(typeof(PocoCombiningPolymorphicTypeAndDerivedTypes))] 1293[JsonSerializable(typeof(ClassWithComponentModelAttributes))] 1294[JsonSerializable(typeof(ClassWithOptionalObjectParameter))] 1295[JsonSerializable(typeof(ClassWithPropertiesUsingCustomConverters))] 1297[JsonSerializable(typeof(int[]))] 1298[JsonSerializable(typeof(List<bool>))] 1299[JsonSerializable(typeof(HashSet<string>))] 1300[JsonSerializable(typeof(Queue<double>))] 1301[JsonSerializable(typeof(Stack<char>))] 1302[JsonSerializable(typeof(ImmutableArray<int>))] 1303[JsonSerializable(typeof(ImmutableList<string>))] 1304[JsonSerializable(typeof(ImmutableQueue<bool>))] 1305[JsonSerializable(typeof(object[]))] 1306[JsonSerializable(typeof(System.Collections.ArrayList))] 1307[JsonSerializable(typeof(Dictionary<string, int>))] 1308[JsonSerializable(typeof(SortedDictionary<int, string>))] 1309[JsonSerializable(typeof(Dictionary<string, SimplePoco>))] 1310[JsonSerializable(typeof(Dictionary<string, object>))] 1311[JsonSerializable(typeof(Hashtable))] 1312[JsonSerializable(typeof(StructDictionary<string, int>))] 1313[JsonSerializable(typeof(XElement))]
Wasm.Performance.TestApp (1)
PersonJsonContext.cs (1)
8[JsonSerializable(typeof(Person))]
3 references to JsonSerializable
System.Text.Json (3)
src\libraries\System.Text.Json\Common\JsonSerializableAttribute.cs (1)
25/// Initializes a new instance of <see cref="JsonSerializableAttribute"/> with the specified type.
src\libraries\System.Text.Json\Common\JsonSourceGenerationMode.cs (1)
14/// and optimized serialization logic should be generated for all types. When specified on <see cref="JsonSerializableAttribute.GenerationMode"/>,
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
159/// Specifies the default source generation mode for type declarations that don't set a <see cref="JsonSerializableAttribute.GenerationMode"/>.