nlohmann::basic_json::insert

inserts element into array

Synopsis

Declared in <nlohmann/json.hpp>

iterator
insert(
    const_iterator pos,
    basic_json&& val);

Return Value

iterator pointing to the inserted element

Parameters

NameDescription
positerator before which the element will be inserted
valelement to insert