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

Name

Description

j

JSON object with which to update this object

merge_objects

whether to merge nested objects recursively instead of overwriting them

Created with MrDocs