nlohmann::basic_json::patch

applies a JSON patch to a copy of the current object

Synopsis

Declared in <nlohmann/json.hpp>

basic_json
patch(basic_json const& json_patch) const;

Return Value

a copy of the current object with json_patch applied

Parameters

NameDescription
json_patchthe JSON Patch (RFC 6902) document to apply