nlohmann::basic_json::operator+=

add an object to an object

Synopsis

Declared in <nlohmann/json.hpp>

reference
operator+=(initializer_list_t init);

Return Value

reference to *this

Parameters

NameDescription
initinitializer list to append; a two-element list whose first element is a string is treated as a key-value pair to insert into an object, otherwise it is appended as a JSON value to an array