nlohmann::basic_json::erase

remove element from a JSON array given an index

Synopsis

Declared in <nlohmann/json.hpp>

void
erase(size_type const idx);

Parameters

NameDescription
idxa type to represent container sizes