Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5cd32df

Browse files
Merge pull request #1049 from rjmill/rjmill/rel-json-pointers-abnf-for-index-manip
Rel JSON Pointer: add ABNF/examples for index manipulation
2 parents 94170f5 + ae2ac2a commit 5cd32df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎relative-json-pointer.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@
9898
</preamble>
9999
<artwork>
100100
<![CDATA[
101-
relative-json-pointer = non-negative-integer <json-pointer>
101+
relative-json-pointer = non-negative-integer [index-manipulation] <json-pointer>
102102
relative-json-pointer =/ non-negative-integer "#"
103+
index-manipulation = ("+" / "-") non-negative-integer
103104
non-negative-integer = %x30 / %x31-39 *( %x30-39 )
104105
; "0", or digits without a leading "0"
105106
]]>
@@ -220,8 +221,10 @@
220221
<![CDATA[
221222
"0" "baz"
222223
"1/0" "bar"
224+
"0-1" "bar"
223225
"2/highly/nested/objects" true
224226
"0#" 1
227+
"0-1#" 0
225228
"1#" "foo"
226229
]]>
227230
</artwork>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /