📝 fix JSON Pointer documentation #3511
This commit is contained in:
parent
b4d5212f22
commit
ef0fdeff7b
@ -18,11 +18,11 @@ Consider the following JSON document
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Then every value inside the JSON document can be idientified as follows:
|
Then every value inside the JSON document can be identified as follows:
|
||||||
|
|
||||||
| JSON Pointer | JSON value |
|
| JSON Pointer | JSON value |
|
||||||
|-------------------|----------------------------------------------------------------------------------|
|
|-------------------|----------------------------------------------------------------------------------|
|
||||||
| `/` | `#!json {"array":["A","B","C"],"nested":{"one":1,"two":2,"three":[true,false]}}` |
|
| `` | `#!json {"array":["A","B","C"],"nested":{"one":1,"two":2,"three":[true,false]}}` |
|
||||||
| `/array` | `#!json ["A","B","C"]` |
|
| `/array` | `#!json ["A","B","C"]` |
|
||||||
| `/array/0` | `#!json A` |
|
| `/array/0` | `#!json A` |
|
||||||
| `/array/1` | `#!json B` |
|
| `/array/1` | `#!json B` |
|
||||||
@ -34,6 +34,9 @@ Then every value inside the JSON document can be idientified as follows:
|
|||||||
| `/nested/three/0` | `#!json true` |
|
| `/nested/three/0` | `#!json true` |
|
||||||
| `/nested/three/1` | `#!json false` |
|
| `/nested/three/1` | `#!json false` |
|
||||||
|
|
||||||
|
Note `/` does not identify the root (i.e., the whole document), but an object entry with empty key `""`. See
|
||||||
|
[RFC 6901](https://tools.ietf.org/html/rfc6901) for more information.
|
||||||
|
|
||||||
## JSON Pointer creation
|
## JSON Pointer creation
|
||||||
|
|
||||||
JSON Pointers can be created from a string:
|
JSON Pointers can be created from a string:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user