[#nlohmann-basic_json-0c-insert-02] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::insert :relfileprefix: ../../ :mrdocs: inserts element into array == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/basic_json-0c/iterator.adoc[iterator] insert( xref:nlohmann/basic_json-0c/const_iterator.adoc[const_iterator] pos, xref:nlohmann/basic_json-0c.adoc[basic_json] const& val); ---- == Return Value iterator pointing to the inserted element == Parameters [cols="1,4"] |=== | Name| Description | *pos* | iterator before which the element will be inserted | *val* | element to insert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#