BloombergLP::bdljsn::Json::insert

Insert into the JsonArray held by this object at the specified position the specified move-insertable json, and return an iterator referring to the newly inserted element. json is left in a valid but unspecified state. If an exception is thrown, *this is unaffected. Throw bsl::length_error if size() == maxSize(). The behavior is undefined unless isArray() and position is in the range [theArray().begin() .. theArray().end()].

Synopsis

Declared in <bdljsn_json.h>

JsonArray::Iterator
insert(
    JsonArray::ConstIterator position,
    bslmf::MovableRef<Json> json);