10 references to Parse
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
197internal static JsonElement DefaultJsonSchema { get; } = JsonElement.Parse("{}"u8);
Microsoft.Extensions.AI.OpenAI (1)
MicrosoftExtensionsAIChatExtensions.cs (1)
239return JsonElement.Parse(ms.GetBuffer().AsSpan(0, (int)ms.Position));
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIConversionTests.cs (2)
646}), JsonElement.Parse(tc.FunctionArguments.ToMemory().Span))); 702}), JsonElement.Parse(m3.FunctionArguments.ToMemory().Span)));
System.Text.Json (6)
System\Text\Json\Nodes\JsonNode.Parse.cs (1)
98JsonElement element = JsonElement.Parse(utf8Json, documentOptions);
System\Text\Json\Nodes\JsonValueOfJsonPrimitive.cs (3)
71value = (T)(object)JsonWriterHelper.WriteString(_value.Span, static serialized => JsonElement.Parse(serialized)); 155value = (T)(object)JsonElement.Parse(_value ? JsonConstants.TrueValue : JsonConstants.FalseValue); 202value = (T)(object)JsonElement.Parse(_value);
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (2)
133return JsonElement.Parse(output.WrittenSpan, options.GetDocumentOptions()); 151return JsonElement.Parse(output.WrittenSpan, options.GetDocumentOptions());