Skip to content

Rel JSON Ptr forward/backward index manipulation #926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion relative-json-pointer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</address>
</author>

<date year="2019"/>
<date year="2020"/>
<workgroup>Internet Engineering Task Force</workgroup>
<keyword>JSON</keyword>
<keyword>JavaScript</keyword>
Expand Down Expand Up @@ -134,6 +134,24 @@
</t>
</list>
</t>
<t>
If the next character is a plus ("+") or minus ("-"), followed by another
continuous sequence of decimal digits, the following steps
are taken using the decimal numeric value of that plus or minus sign
and decimal sequence:
<list>
<t>
If the current referenced value is not an item of an array,
then evaluation fails (see below).
</t>
<t>
If the referenced value is an item of an array, then the
new referenced value is the item of the array indexed by
adding the decimal value (which may be negative), to the
index of the current referenced value.
</t>
</list>
</t>
<t>
If the remainder of the Relative JSON Pointer is a JSON Pointer, then
evaluation proceeds as per
Expand Down Expand Up @@ -300,6 +318,11 @@
</t>
<t>
<list style="hanging">
<t hangText="draft-handrews-relative-json-pointer-03">
<list style="symbols">
<t>Add array forward and backward index manipulation</t>
</list>
</t>
<t hangText="draft-handrews-relative-json-pointer-02">
<list style="symbols">
<t>Update to the latest JSON RFC</t>
Expand Down