Insert members from memberInitializers into the held object.
Declared in <bdljsn_json.h>
Json&
insert(std::initializer_list<JsonObject_MemberInitializer> memberInitializers);
Insert into the JsonObject held by this object members created from the specified memberInitializers, ignoring those whose keys already exist. Return a non-const reference to this object. If isNull(), then the type is changed to object. The behavior is undefined unless isObject() or isNull(), and unless the keys of all members are valid UTF-8 (see bdlde::Utf8Util::isValid).
a reference providing modifiable access to this object
| Name | Description |
|---|---|
| memberInitializers | initializer-list of members |