[#nlohmann-basic_json-0c-operator_assign] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::operator= :relfileprefix: ../../ :mrdocs: copy assignment == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/basic_json-0c.adoc[basic_json]& operator=(xref:nlohmann/basic_json-0c.adoc[basic_json] other) noexcept(/* see-below */); ---- == Exception specification This function is potentially-throwing unless `std::is_nothrow_move_constructible<value_t>::value && std::is_nothrow_move_assignable<value_t>::value && std::is_nothrow_move_constructible<json_value>::value && std::is_nothrow_move_assignable<json_value>::value && std::is_nothrow_move_assignable<json_base_class_t>::value`. == Return Value reference to `*this` == Parameters [cols="1,4"] |=== | Name| Description | *other* | the basic_json object to assign from, taken by value to enable copy‐and‐swap |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#