Create a JSONPointer
segments from parent context
The path segments
Returns whether this JSONPointer is equal to another JSONPointer, ignoring the values of array index segments.
This implements an equivalence relation between JSONPointers that considers two values equal if they have the same number of segments, corresponding segments are of the same type, and corresponding key segments are equal. It is used by the structural delta code to identify potential matches between two pointers to different values.
the other pointer to compare to
whether the other pointer is equal (ignoring indexes)
Compare two JSONPointer objects
Non-equal JSONPointer instances can have the same expression. E.g. ROOT.withIndex(1) is not equal to ROOT.withKey('1'), but both have the same expression '/1'
the other pointer instance to compare to
whether the two instances are equal
Convert the JSON pointer to a string
the JSONPointer expression
Append a index segment to the pointer
a new instance equal to this instance with index appended
Append a key segment to the pointer
a new instance equal to this instance with key appended
Append a segment to the pointer
a new instance equal to this instance with segment appended
Parse a string containing a JSON pointer into a JSONPointer object.
A segment that has only decimal digits will be interpreted as an index unless it has leading zeros (RFC 6901, section4), or its value is larger than Integer.MAX_VALUE
a string containing the JSON pointer expression. If a JSONPointer object is supplied, then it will be returned unchanged
a JSONPointer that corresponds to the expression
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
JSON Pointer implementation that allows incremental building of pointers.
Segments from parent context
5.9