Insert at the specified index in this JsonArray 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 (template parameter) type t_INDEX must be a non-bool integral type. The behavior is undefined unless index is in the range [0 .. size()] (both endpoints included).
Declared in <bdljsn_json.h>
template<class t_INDEX>
JsonArray::Iterator
insert(
t_INDEX index,
bslmf::MovableRef<Json> json)
requires bsl::is_integral<t_INDEX>::value
&& !bsl::is_same<t_INDEX, bool>::value;