21 references to Default
Microsoft.AspNetCore.Http.Extensions.Tests (2)
ProblemDetailsDefaultWriterTest.cs (2)
87var result = await JsonSerializer.DeserializeAsync<Dictionary<string, object>>(stream, JsonSerializerOptions.Default); 119var result = await JsonSerializer.DeserializeAsync<Dictionary<string, object>>(stream, JsonSerializerOptions.Default);
Microsoft.AspNetCore.OpenApi.Tests (1)
Extensions\JsonTypeInfoExtensionsTests.cs (1)
83var jsonTypeInfo = JsonSerializerOptions.Default.GetTypeInfo(type);
Microsoft.Extensions.AI.Abstractions.Tests (7)
AssertExtensions.cs (1)
57options ??= JsonSerializerOptions.Default;
Utilities\AIJsonUtilitiesTests.cs (6)
77JsonElement actual = AIJsonUtilities.CreateJsonSchema(typeof(MyPoco), serializerOptions: JsonSerializerOptions.Default); 121serializerOptions: JsonSerializerOptions.Default, 167JsonElement actual = AIJsonUtilities.CreateJsonSchema(typeof(MyPoco), serializerOptions: JsonSerializerOptions.Default, inferenceOptions: inferenceOptions); 195JsonElement actual = AIJsonUtilities.CreateJsonSchema(typeof(PocoWithTypesWithOpenAIUnsupportedKeywords), serializerOptions: JsonSerializerOptions.Default); 215JsonSerializerOptions options = new(JsonSerializerOptions.Default); 236JsonSerializerOptions options = new(JsonSerializerOptions.Default) { NumberHandling = JsonNumberHandling.AllowReadingFromString };
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (1)
57options ??= JsonSerializerOptions.Default;
Microsoft.Extensions.AI.Ollama.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (1)
57options ??= JsonSerializerOptions.Default;
Microsoft.Extensions.AI.OpenAI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (1)
57options ??= JsonSerializerOptions.Default;
Microsoft.Extensions.AI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (1)
57options ??= JsonSerializerOptions.Default;
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultJsonSerializerFactory.cs (1)
36JsonSerializer.Serialize<T>(writer, value, JsonSerializerOptions.Default);
Shared.Tests (1)
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
174protected override JsonSerializerOptions Options => JsonSerializerOptions.Default;
System.Text.Json (4)
System\Text\Json\Nodes\JsonNode.cs (1)
389var jsonTypeInfo = (JsonTypeInfo<T>)JsonSerializerOptions.Default.GetTypeInfo(typeof(T));
System\Text\Json\Nodes\JsonValue.cs (1)
67var jsonTypeInfo = (JsonTypeInfo<T>)JsonSerializerOptions.Default.GetTypeInfo(typeof(T));
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (1)
37options ??= JsonSerializerOptions.Default;
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.cs (1)
14/// The contract resolver used by <see cref="JsonSerializerOptions.Default"/>.
TestProject.AppHost (1)
TestProgram.cs (1)
173await Console.Out.WriteLineAsync("$ENDPOINTS: " + JsonSerializer.Serialize(root, JsonSerializerOptions.Default));