[#nlohmann-basic_json-0c-patch]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json]::patch
:relfileprefix: ../../
:mrdocs:

applies a JSON patch to a copy of the current object

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json]
patch(xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json] const& json&lowbar;patch) const;
----

== Return Value

a copy of the current object with _json&lowbar;patch_ applied

== Parameters

[cols="1,4"]
|===
| Name| Description
| *json&lowbar;patch*
| the JSON Patch (RFC 6902) document to apply
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
