[#nlohmann-basic_json-0c-update-04] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::update :relfileprefix: ../../ :mrdocs: updates a JSON object from another object, overwriting existing keys == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void update( xref:nlohmann/basic_json-0c/const_reference.adoc[const_reference] j, bool merge_objects = false); ---- == Parameters [cols="1,4"] |=== | Name| Description | *j* | JSON object with which to update this object | *merge_objects* | whether to merge nested objects recursively instead of overwriting them |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#