[#nlohmann-basic_json-00-diff]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::diff
:relfileprefix: ../../
:mrdocs:

creates a diff as a JSON patch

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&lowbar;&lowbar;warn&lowbar;unused&lowbar;result&lowbar;&lowbar;&rsqb;&rsqb;
static
xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]
diff(
    xref:nlohmann/basic_json-00.adoc[basic&lowbar;json] const& source,
    xref:nlohmann/basic_json-00.adoc[basic&lowbar;json] const& target,
    xref:nlohmann/basic_json-00/string_t.adoc[string&lowbar;t] const& path = &quot;&quot;);
----

== Return Value

a class to store JSON values

== Parameters

[cols=2]
|===
| Name
| Description
| *source*
| a class to store JSON values
| *target*
| a class to store JSON values
| *path*
| a type for a string
|===


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