[#nlohmann-basic_json-00-update-0c] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.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-00/const_reference.adoc[const_reference] j, bool merge_objects = false); ---- == Parameters [cols=2] |=== | Name | Description | *j* | the type of an element const reference |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#