6 references to SerializeToNode
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
164
schema[OpenApiSchemaKeywords.DefaultKeyword] = JsonSerializer.
SerializeToNode
(defaultValue, jsonTypeInfo);
Microsoft.Extensions.AI (2)
ChatCompletion\OpenTelemetryChatClient.cs (2)
458
JsonSerializer.
SerializeToNode
(result, _jsonSerializerOptions.GetTypeInfo(result.GetType())) :
519
JsonSerializer.
SerializeToNode
(fc.Arguments, _jsonSerializerOptions.GetTypeInfo(typeof(IDictionary<string, object?>))) :
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
717
defaultValue = JsonSerializer.
SerializeToNode
(defaultVal, parameterTypeInfo);
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
717
defaultValue = JsonSerializer.
SerializeToNode
(defaultVal, parameterTypeInfo);
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
248
propertySchema.DefaultValue = JsonSerializer.
SerializeToNode
(parameterInfo.DefaultValue, property.JsonTypeInfo);