Insert a copy of json at the specified position.
Declared in <bdljsn_json.h>
JsonArray::Iterator
insert(
ConstIterator position,
Json const& json);
Insert at the specified position in this JsonArray a copy of the specified json, and return an iterator referring to the newly inserted element. If an exception is thrown, *this is unaffected. Throw bsl::length_error if size() == maxSize(). The behavior is undefined unless position is an iterator in the range [begin() .. end()] (both endpoints included).
an iterator referring to the newly inserted element
| Name | Description |
|---|---|
| position | insertion iterator |
| json | value to insert |