nlohmann::basic_json::operator+=

add an object to an object

Synopsis

Declared in <nlohmann/json.hpp>

reference
operator+=(object_t::value_type const& val);

Return Value

reference to *this

Parameters

NameDescription
valkey-value pair to insert into the object