#include <folly/json/json_patch.h>
#include <glog/logging.h>
#include <folly/container/Enumerate.h>
namespace folly {
constexpr StringPiece kOperationTest = …;
constexpr StringPiece kOperationRemove = …;
constexpr StringPiece kOperationAdd = …;
constexpr StringPiece kOperationReplace = …;
constexpr StringPiece kOperationMove = …;
constexpr StringPiece kOperationCopy = …;
constexpr StringPiece kOpTag = …;
constexpr StringPiece kValueTag = …;
constexpr StringPiece kPathTag = …;
constexpr StringPiece kFromTag = …;
Expected<json_patch, json_patch::parse_error> json_patch::try_parse(
dynamic const& obj) noexcept { … }
std::vector<json_patch::patch_operation> const& json_patch::ops() const { … }
namespace {
Expected<Unit, json_patch::patch_application_error_code>
do_remove(dynamic::resolved_json_pointer<dynamic>& ptr) { … }
Expected<Unit, json_patch::patch_application_error_code>
do_add(
dynamic::resolved_json_pointer<dynamic>& ptr,
const dynamic& value,
const std::string& last_token) { … }
}
Expected<Unit, json_patch::patch_application_error>
json_patch::apply(dynamic& obj) const { … }
}