A parsed JSON Pointer, as described in RFC 6901 "JSON Pointer".
Declared in <folly/json/json_pointer.h>
class json_pointer;
Implements parsing. Traversal using the pointer over data structures must be implemented separately.
| Name | Description |
|---|---|
parse_exception | Thrown by parse() when the input string is not a valid JSON Pointer. |
| Name | Description |
|---|---|
parse_error | Reasons a JSON Pointer string may fail to parse. |
| Name | Description |
|---|---|
json_pointer [constructor] | Constructs an empty pointer that refers to the whole document. |
~json_pointer [destructor] | Destroys the pointer. |
is_prefix_of | Return true if this pointer is proper to prefix to another pointer. |
tokens | Get access to the parsed tokens for applications that want to traverse the pointer. |
| Name | Description |
|---|---|
parse | Parse string into vector of unescaped tokens. Throwing version. |
try_parse | Parse string into vector of unescaped tokens. Non-throwing version. |
| Name | Description |
|---|---|
folly::operator!= | Compare two pointers for inequality. |
folly::operator== | Compare two pointers for equality. |