Class
JsonValue
sealed class JsonValue
Module: System.Data.Json
Assembly: System.Data.dll
Source file: JsonValue.rvn
Inheritance: Object → JsonValue
Closed hierarchy: only the permitted direct subtypes can extend this type.
Permitted direct subtypes: JsonObject, JsonArray, JsonString, JsonNumber, JsonBoolean, JsonNull
Closed abstract root of the provisional JSON DOM.
Remarks
Development after Preview 9. The six kinds are JsonObject, JsonArray, JsonString, JsonNumber, JsonBoolean and JsonNull. External subclasses are not supported. Nodes use ordinary reference identity, not deep equality; use JsonSerializer to write JSON. Containers may share child references. Mutation and scalar access are kind-specific.
Derived types
Documented types in this API reference. Indirect relationships are marked.
Show less
Constructors
1 item
JsonValue()
No summary available.
Methods
6 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToJsonString() -> Result<string, JsonError>
Converts this node to compact JSON text, including JSON quoting and escaping for strings.
ToJsonString(options: JsonSerializerOptions) -> Result<string, JsonError>
Converts this node to JSON text using the selected formatting.
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString