#include <json-patch.hpp>
Public Member Functions | |
| json_patch ()=default | |
| json_patch (json &&patch) | |
| json_patch (const json &patch) | |
| json_patch & | add (const json::json_pointer &, json value) |
| json_patch & | replace (const json::json_pointer &, json value) |
| json_patch & | remove (const json::json_pointer &) |
| json & | get_json () |
| const json & | get_json () const |
| operator json () const | |
Static Private Member Functions | |
| static void | validateJsonPatch (json const &patch) |
Private Attributes | |
| json | j_ = nlohmann::json::array() |
Definition at line 20 of file json-patch.hpp.
|
default |
| nlohmann::json_patch::json_patch | ( | json && | patch | ) |
Definition at line 74 of file json-patch.cpp.
References j_, and validateJsonPatch().
Referenced by main().
| nlohmann::json_patch::json_patch | ( | const json & | patch | ) |
Definition at line 80 of file json-patch.cpp.
References j_, and validateJsonPatch().
| json_patch & nlohmann::json_patch::add | ( | const json::json_pointer & | ptr, |
| json | value ) |
Definition at line 86 of file json-patch.cpp.
References j_.
Referenced by anonymous_namespace{json-validator.cpp}::object::validate(), and anonymous_namespace{json-validator.cpp}::type_schema::validate().
|
inline |
Definition at line 31 of file json-patch.hpp.
References j_.
Referenced by anonymous_namespace{json-validator.cpp}::logical_combination< combine_logic >::validate().
|
inline |
|
inline |
| json_patch & nlohmann::json_patch::remove | ( | const json::json_pointer & | ptr | ) |
Definition at line 98 of file json-patch.cpp.
References j_.
| json_patch & nlohmann::json_patch::replace | ( | const json::json_pointer & | ptr, |
| json | value ) |
|
staticprivate |
Definition at line 104 of file json-patch.cpp.
References nlohmann::json_schema::json_validator::json_validator(), anonymous_namespace{json-patch.cpp}::patch_schema, and nlohmann::json_schema::json_validator::validate().
Referenced by json_patch(), and json_patch().
|
private |
Definition at line 37 of file json-patch.hpp.
Referenced by add(), get_json(), get_json(), json_patch(), json_patch(), operator json(), remove(), and replace().