Move‐insert member into the held object if its key is new.

Synopsis

Description

Insert the specified move‐insertable member into the JsonObject held by this object if the key of member does not already exist; otherwise, this method has no effect. Return a pair whose first member is an iterator referring to the (possibly newly inserted) Member object whose key matches, and whose second member is true if a new value was inserted, and false otherwise. member is left in a valid but unspecified state. If isNull(), then the type is changed to object. The behavior is undefined unless isObject() or isNull(), and unless member.first is valid UTF‐8 (see bdlde::Utf8Util::isValid).

Return Value

a pair of an iterator to the element and a bool that is true if inserted

Parameters

Name

Description

member

key/value pair to insert

Created with MrDocs