Skip to content

IJsonElement

Definition

Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IJsonElement.cs

Implemented by JsonElement-derived types.

public interface IJsonElement

Implemented By

IJsonElement<T>, IMutableJsonElement<T>, JsonElement, JsonElement.Mutable, JsonElementForBooleanFalseSchema, JsonElementForBooleanFalseSchema.Mutable, JsonPatchDocument, JsonPatchDocument.AddOperation, JsonPatchDocument.AddOperation.Mutable, JsonPatchDocument.AddOperation.OpEntity, JsonPatchDocument.AddOperation.OpEntity.Mutable, JsonPatchDocument.CopyOperation, JsonPatchDocument.CopyOperation.Mutable, JsonPatchDocument.CopyOperation.OpEntity, JsonPatchDocument.CopyOperation.OpEntity.Mutable, JsonPatchDocument.MoveOperation, JsonPatchDocument.MoveOperation.Mutable, JsonPatchDocument.MoveOperation.OpEntity, JsonPatchDocument.MoveOperation.OpEntity.Mutable, JsonPatchDocument.Mutable, JsonPatchDocument.PatchOperation, JsonPatchDocument.PatchOperation.Mutable, JsonPatchDocument.PatchOperationCommon, JsonPatchDocument.PatchOperationCommon.Mutable, JsonPatchDocument.RemoveOperation, JsonPatchDocument.RemoveOperation.Mutable, JsonPatchDocument.RemoveOperation.OpEntity, JsonPatchDocument.RemoveOperation.OpEntity.Mutable, JsonPatchDocument.ReplaceOperation, JsonPatchDocument.ReplaceOperation.Mutable, JsonPatchDocument.ReplaceOperation.OpEntity, JsonPatchDocument.ReplaceOperation.OpEntity.Mutable, JsonPatchDocument.TestOperation, JsonPatchDocument.TestOperation.Mutable, JsonPatchDocument.TestOperation.OpEntity, JsonPatchDocument.TestOperation.OpEntity.Mutable, JsonPointer, JsonPointer.Mutable, JsonString, JsonString.Mutable

Properties

Property Type Description
ParentDocument IJsonDocument Gets the parent document.
ParentDocumentIndex int Gets the handle identifying the IJsonElement in its parent document.
TokenType JsonTokenType Gets the JSON Token type of the element.
ValueKind JsonValueKind Gets the JSON Value Kind of the element.

Methods

Method Description
CheckValidInstance() Checks that this instance is valid.
EvaluateSchema(IJsonSchemaResultsCollector) Evaluates the schema for this element.
WriteTo(Utf8JsonWriter) Writes this element to the specified Utf8JsonWriter.

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