Class JsonPointerIterator
Properties
Static Readonly JSON_ITERATOR
Methods
appendArrayElement
- appendArrayElement(currentValue: any | null | undefined, value: any | null | undefined): boolean
-
Parameters
-
currentValue: any | null | undefined
-
value: any | null | undefined
Returns boolean
getArrayElement
- getArrayElement(currentValue: any | null | undefined, i: number): any
-
Parameters
-
currentValue: any | null | undefined
-
i: number
Returns any
getObjectParameter
- getObjectParameter(currentValue: any | null | undefined, key: string, createOnMissing: boolean): any
-
Parameters
-
currentValue: any | null | undefined
-
key: string
-
createOnMissing: boolean
Returns any
isArray
- isArray(currentValue: any | null | undefined): boolean
-
Parameters
-
currentValue: any | null | undefined
Returns boolean
isNull
- isNull(currentValue: any | null | undefined): boolean
-
Parameters
-
currentValue: any | null | undefined
Returns boolean
isObject
- isObject(currentValue: any | null | undefined): boolean
-
Parameters
-
currentValue: any | null | undefined
Returns boolean
objectContainsKey
- objectContainsKey(currentValue: any | null | undefined, key: string): boolean
-
Parameters
-
currentValue: any | null | undefined
-
key: string
Returns boolean
writeArrayElement
- writeArrayElement(currentValue: any | null | undefined, i: number, value: any | null | undefined): boolean
-
Parameters
-
currentValue: any | null | undefined
-
i: number
-
value: any | null | undefined
Returns boolean
writeObjectParameter
- writeObjectParameter(currentValue: any | null | undefined, key: string, value: any | null | undefined): boolean
-
Parameters
-
currentValue: any | null | undefined
-
key: string
-
value: any | null | undefined
Returns boolean
The JsonPointerIterator is used by the read/write algorithms of the JsonPointer to read/write the querying data structure
Every method takes the currentValue as parameter, representing the actual value held by the query algorithm.
Implementations of this interface should be stateless, so they can be reused
You can implement this interface to query the structure you want using json pointers