JSON for Modern C++
3.5.0
|
JSON Pointer. More...
#include <json.hpp>
Public Member Functions | |
json_pointer (const std::string &s="") | |
create JSON pointer More... | |
operator std::string () const | |
return a string representation of the JSON pointer More... | |
std::string | to_string () const |
return a string representation of the JSON pointer More... | |
Static Public Member Functions | |
static int | array_index (const std::string &s) |
Friends | |
class | basic_json |
bool | operator!= (json_pointer const &lhs, json_pointer const &rhs) noexcept |
bool | operator== (json_pointer const &lhs, json_pointer const &rhs) noexcept |
A JSON pointer defines a string syntax for identifying a specific value within a JSON document. It can be used with functions at
and operator[]
. Furthermore, JSON pointers are the base for JSON patches.