folly::json_pointer

A parsed JSON Pointer, as described in RFC 6901 "JSON Pointer".

Synopsis

Declared in <folly/json/json_pointer.h>

class json_pointer;

Description

Implements parsing. Traversal using the pointer over data structures must be implemented separately.

Types

NameDescription
parse_exception Thrown by parse() when the input string is not a valid JSON Pointer.

Enums

NameDescription
parse_error Reasons a JSON Pointer string may fail to parse.

Member Functions

NameDescription
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.

Static Member Functions

NameDescription
parse Parse string into vector of unescaped tokens. Throwing version.
try_parse Parse string into vector of unescaped tokens. Non-throwing version.

Friends

NameDescription
folly::operator!=Compare two pointers for inequality.
folly::operator==Compare two pointers for equality.