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 ae2ac2a

Browse files
Rel JSON Pointer: add ABNF/examples for index manipulation
Fixes #1048
1 parent e6bead3 commit ae2ac2a

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
@@ -91,8 +91,9 @@
9191
</preamble>
9292
<artwork>
9393
<![CDATA[
94-
relative-json-pointer = non-negative-integer <json-pointer>
94+
relative-json-pointer = non-negative-integer [index-manipulation] <json-pointer>
9595
relative-json-pointer =/ non-negative-integer "#"
96+
index-manipulation = ("+" / "-") non-negative-integer
9697
non-negative-integer = %x30 / %x31-39 *( %x30-39 )
9798
; "0", or digits without a leading "0"
9899
]]>
@@ -213,8 +214,10 @@
213214
<![CDATA[
214215
"0" "baz"
215216
"1/0" "bar"
217+
"0-1" "bar"
216218
"2/highly/nested/objects" true
217219
"0#" 1
220+
"0-1#" 0
218221
"1#" "foo"
219222
]]>
220223
</artwork>

0 commit comments

Comments
(0)

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