Index

class Index(val index: Int) : RelativePointerResult(source)

The relative pointer ended with # and the resolved location is (or appears to be) an array element. The index is the zero-based position of that element within its parent array.

Whether a segment is treated as an array index is determined by whether its string form parses as a non-negative integer — consistent with JSON Pointer addressing conventions. This determination is made without access to the actual JSON document.

Constructors

Link copied to clipboard
constructor(index: Int)

Properties

Link copied to clipboard
val index: Int

The zero-based array index.