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