6 references to Parse
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());