JsonNode
The base class that represents a single node within a mutable JSON document.
Gets or sets the element at the specified index.
Gets or sets the element with the specified property name.
If the property is not found, null is returned.
Gets the options to control the behavior.
Gets the parent JsonNode.
If there is no parent, null is returned.
A parent can either be a JsonObject or a JsonArray.
Gets the root JsonNode.
Compares the values of two nodes, including the values of all descendant nodes.
Defines an explicit conversion of a given JsonNode to a DateTimeOffset.
Defines an explicit conversion of a specified nullable JsonNode to a nullable DateTimeOffset.
Defines an implicit conversion of a given DateTimeOffset to a JsonNode.
Defines an implicit conversion of a specified nullable DateTimeOffset to a JsonNode.
Parses one JSON value (including objects or arrays) from the provided reader.
public static JsonNode Parse(string json, JsonNodeOptions? nodeOptions = default, JsonDocumentOptions documentOptions = default)
Parses text representing a single JSON value.
public static JsonNode Parse(ReadOnlySpan<byte> utf8Json, JsonNodeOptions? nodeOptions = default, JsonDocumentOptions documentOptions = default)
Parses text representing a single JSON value.
public static JsonNode Parse(Stream utf8Json, JsonNodeOptions? nodeOptions = default, JsonDocumentOptions documentOptions = default)
Parses a Stream as UTF-8-encoded data representing a single JSON value into a JsonNode. The Stream will be read to completion.
public static Task<JsonNode> ParseAsync(Stream utf8Json, JsonNodeOptions? nodeOptions = default, JsonDocumentOptions documentOptions = default, CancellationToken cancellationToken = default)
Parses a Stream as UTF-8 encoded data representing a single JSON value into a JsonNode. The stream will be read to completion.
Casts to the derived JsonArray type.
Casts to the derived JsonObject type.
Casts to the derived JsonValue type.
Creates a new instance of the JsonNode class. All child nodes are recursively cloned.
Returns the index of the current node from the parent JsonArray.
Gets the JSON path.
Returns the property name of the current node from the parent object.
Gets the value for the current JsonValue.
Returns the JsonValueKind of the current instance.
Replaces this node with a new value.
Converts the current instance to string in JSON format.
Writes the JsonNode into the provided Utf8JsonWriter as JSON.