Skip to content

Commit c54b3de

Browse files
committed
Update main decription to include index adjustment.
Somehow this was left out of the main syntax description paragraph entirely.
1 parent ee1fd04 commit c54b3de

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

relative-json-pointer.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@
8383
<t>
8484
A Relative JSON Pointer is a Unicode string in UTF-8 encoding (see RFC 8259,
8585
<xref target="RFC8259">Section 8</xref>), comprising a non-negative integer,
86-
followed by either a '#' (%x23) character or a JSON Pointer
87-
(<xref target="RFC6901">RFC 6901</xref>).
86+
an optional index adjustment consisting of '+' (%x2B) or '-' (%x2D) followed
87+
by a positive integer, followed by either a '#' (%x23) character or
88+
a JSON Pointer (<xref target="RFC6901">RFC 6901</xref>).
8889
</t>
8990
<t>
90-
The separation between the integer prefix and the JSON Pointer will
91+
The separation between the integer prefix (with optional adjustment)
92+
and the JSON Pointer will
9193
always be unambiguous, because a JSON Pointer must be either zero-
9294
length or start with a '/' (%x2F). Similarly, a JSON Pointer will
9395
never be ambiguous with the '#'.

0 commit comments

Comments
 (0)