nlohmann::basic_json::update

updates a JSON object from another object, overwriting existing keys

Synopsis

Declared in <nlohmann/json.hpp>

void
update(
    const_reference j,
    bool merge_objects = false);

Parameters

NameDescription
jthe type of an element const reference