]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/doc/mkdocs/docs/features/json_pointer.md
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / nlohmann-json / doc / mkdocs / docs / features / json_pointer.md
1 # JSON Pointer
2
3 The library supports **JSON Pointer** ([RFC 6901](https://tools.ietf.org/html/rfc6901)) as alternative means to address structured values.
4
5 ```cpp
6 // a JSON value
7 json j_original = R"({
8 "baz": ["one", "two", "three"],
9 "foo": "bar"
10 })"_json;
11
12 // access members with a JSON pointer (RFC 6901)
13 j_original["/baz/1"_json_pointer];
14 // "two"
15 ```
16
17 ## See also
18
19 - Class [`json_pointer`](../api/json_pointer/index.md)