[#nlohmann-basic_json-0c-operator_plus_eq-05] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::operator+= :relfileprefix: ../../ :mrdocs: add an object to an object == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/basic_json-0c/reference.adoc[reference] operator+=(object_t::value_type const& val); ---- == Return Value reference to `*this` == Parameters [cols="1,4"] |=== | Name| Description | *val* | key‐value pair to insert into the object |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#