[#nlohmann-basic_json-0c-patch] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::patch :relfileprefix: ../../ :mrdocs: applies a JSON patch to a copy of the current object == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/basic_json-0c.adoc[basic_json] patch(xref:nlohmann/basic_json-0c.adoc[basic_json] const& json_patch) const; ---- == Return Value a copy of the current object with _json_patch_ applied == Parameters [cols="1,4"] |=== | Name| Description | *json_patch* | the JSON Patch (RFC 6902) document to apply |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#