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

Name

Description

json_patch

the JSON Patch (RFC 6902) document to apply

Created with MrDocs