Fix Pointer guide punctuations
This commit is contained in:
parent
2acc1e9a3d
commit
1086297f13
@ -21,9 +21,9 @@ A JSON Pointer is a list of zero-to-many tokens, each prefixed by `/`. Each toke
|
|||||||
The following JSON Pointers resolve this JSON as:
|
The following JSON Pointers resolve this JSON as:
|
||||||
|
|
||||||
1. `"/foo"` → `[ "bar", "baz" ]`
|
1. `"/foo"` → `[ "bar", "baz" ]`
|
||||||
2. `"/foo/0` → `"bar"`
|
2. `"/foo/0"` → `"bar"`
|
||||||
3. `"/foo/1` → `"baz"`
|
3. `"/foo/1"` → `"baz"`
|
||||||
4. `"/pi` → 3.1416
|
4. `"/pi"` → 3.1416
|
||||||
|
|
||||||
Note that, an empty JSON Pointer `""` (zero token) resolves to the whole JSON.
|
Note that, an empty JSON Pointer `""` (zero token) resolves to the whole JSON.
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ String Representation | URI Fragment Representation | Pointer Tokens (UTF-8)
|
|||||||
`"/m~0n"` | `"#/m~0n"` | `{"m~n"}`
|
`"/m~0n"` | `"#/m~0n"` | `{"m~n"}`
|
||||||
`"/ "` | `"#/%20"` | `{" "}`
|
`"/ "` | `"#/%20"` | `{" "}`
|
||||||
`"/\0"` | `"#/%00"` | `{"\0"}`
|
`"/\0"` | `"#/%00"` | `{"\0"}`
|
||||||
`"/\xE2\x82\xAC"` | `"#/%E2%82%AC` | `{"\xE2\x82\xAC"}`
|
`"/\xE2\x82\xAC"` | `"#/%E2%82%AC"` | `{"\xE2\x82\xAC"}`
|
||||||
|
|
||||||
RapidJSON fully support URI fragment representation. It automatically detects the pound sign during parsing.
|
RapidJSON fully support URI fragment representation. It automatically detects the pound sign during parsing.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user