• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JSON Pointer
2
3The 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
7json j_original = R"({
8  "baz": ["one", "two", "three"],
9  "foo": "bar"
10})"_json;
11
12// access members with a JSON pointer (RFC 6901)
13j_original["/baz/1"_json_pointer];
14// "two"
15```
16