Skip to content

JsonString

Definition

Namespace: Corvus.Text.Json.Patch
Assembly: Corvus.Text.Json.dll

Generated from JSON Schema.

public readonly struct JsonString : IJsonElement<JsonString>, IJsonElement, IFormattable, ISpanFormattable, IUtf8SpanFormattable

Implements

IJsonElement<JsonString>, IJsonElement, IFormattable, ISpanFormattable, IUtf8SpanFormattable

Properties

Property Type Description
DefaultInstance static JsonString Gets the default instance.
ValueKind JsonValueKind

Methods

Method Description
Clone() Gets a JsonString which can be safely stored beyond the lifetime of the original document.
CreateBuilder static
Equals
EvaluateSchema(IJsonSchemaResultsCollector) Evaluate this instance against the JSON Schema for this type.
Freeze() Creates a frozen (immutable) copy of this element if it is backed by a mutable document, or returns this instance if it is already immutable.
From(ref T) static Gets an instance of the JSON value from another element.
GetHashCode()
GetString()
GetUtf16String()
GetUtf8String()
ParseValue static Parses one JSON value (including objects or arrays) from the provided span.
ToString
TryFormat
TryGetValue(ref string)
TryParseValue(ref Utf8JsonReader, ref Nullable<JsonString>) static Attempts to parse one JSON value (including objects or arrays) from the provided reader.
ValueEquals Compare with a UTF-8 string.
WriteTo(Utf8JsonWriter)

Operators

Operator Description
Equality Operator ==.
explicit operator string(JsonString)
Implicit Converts the instance to a JsonElement.
Inequality Operator !=.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue