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

updates a JSON object from another object, overwriting existing keys

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
update(
    xref:nlohmann/basic_json-00/const_reference.adoc[const&lowbar;reference] j,
    bool merge&lowbar;objects = false);
----

== Parameters

[cols="1,4"]
|===
|Name|Description

| *j*
| the type of an element const reference
|===


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