remove element from a JSON object given a key
Declared in <nlohmann/json.hpp>
template<class KeyType>
requires detail::is_usable_as_basic_json_key_type<basic_json_t, KeyType>::value
size_type
erase(KeyType&& key);
number of elements removed (0 or 1)
| Name | Description |
|---|---|
| key | key of the element to remove |