append

Adds an arbitrary token to the list of reference tokens. It can be any non-null value. Unlike in the case of JSON string or URI fragment representation of JSON pointers, the argument of this method MUST NOT be escaped. If you want to query the property called "a~b" then you should simply pass the "a~b" string as-is, there is no need to escape it as "a~0b".

Return

this

Parameters

token

the new token to be appended to the list

Throws

if token is null


open fun append(arrayIndex: Int): JSONPointer.Builder

Adds an integer to the reference token list. Although not necessarily, mostly this token will denote an array index.

Return

this

Parameters

arrayIndex

the array index to be added to the token list