JSON Pointer defines a string syntax for identifying a specific value within a JSON document.
More...
|
| | json_pointer (const string_t &s="") |
| | create JSON pointer
|
| |
| string_t | to_string () const |
| | return a string representation of the JSON pointer
|
| |
| | operator string_t () const |
| | return a string representation of the JSON pointer
|
| |
| json_pointer & | operator/= (const json_pointer &ptr) |
| | append another JSON pointer at the end of this JSON pointer
|
| |
| json_pointer & | operator/= (string_t token) |
| | append an unescaped reference token at the end of this JSON pointer
|
| |
| json_pointer & | operator/= (std::size_t array_idx) |
| | append an array index at the end of this JSON pointer
|
| |
| json_pointer | parent_pointer () const |
| | returns the parent of this JSON pointer
|
| |
| void | pop_back () |
| | remove last reference token
|
| |
| const string_t & | back () const |
| | return last reference token
|
| |
| void | push_back (const string_t &token) |
| | append an unescaped token at the end of the reference pointer
|
| |
| void | push_back (string_t &&token) |
| | append an unescaped token at the end of the reference pointer
|
| |
| bool | empty () const noexcept |
| | return whether pointer points to the root document
|
| |
template<typename RefStringType>
class json_pointer< RefStringType >
JSON Pointer defines a string syntax for identifying a specific value within a JSON document.
- See also
- https://json.nlohmann.me/api/json_pointer/