Companion

object Companion

Properties

Link copied to clipboard
const val APPEND: String

The token JSON Patch uses for "one past the last element" of an array.

Link copied to clipboard
const val MAX_TOKENS: Int = 256

The most tokens a pointer may carry.

Link copied to clipboard

The pointer to the whole data model.

Functions

Link copied to clipboard
fun of(vararg tokens: String): JsonPointer

Builds an absolute pointer from already-unescaped tokens.

Link copied to clipboard

Parses raw, rejecting a malformed escape rather than reading it literally and a pointer with more than MAX_TOKENS tokens rather than recursing on it.