Api Pointer
class

Pointer

public class Pointer

Represents a JSON Pointer as defined in RFC 6901.

Constructors

Pointer(String value)

Initializes a new instance of the Pointer class with the specified string.

value — The string value of the JSON Pointer.

Properties

Name Type Description
ReferenceTokens ImmutableArray<String> The reference tokens that make up the JSON Pointer.
IsRoot Boolean

Methods

Pointer Append(String token)

Appends a token to the JSON Pointer and returns a new Pointer.

token — The token to append.
returns — A new Pointer with the appended token.
Pointer Append(Int32 index)

Appends an integer index as a token to the JSON Pointer and returns a new Pointer.

index — The integer index to append.
returns — A new Pointer with the appended index.
Pointer GetParent()

Returns a new Pointer representing the parent of the current pointer.

returns — A new Pointer for the parent path.
JsonNode Evaluate(JsonNode document)

Fields

Name Type Description
Root static Pointer A static instance representing the root JSON Pointer (i.e., "/").
Assembly: Sandbox.Engine Declaring Type: Json Full Name: Sandbox.Json.Pointer