diff --git a/nlohmann::basicjson::erase.md b/nlohmann::basicjson::erase.md index 80a3104..819491a 100644 --- a/nlohmann::basicjson::erase.md +++ b/nlohmann::basicjson::erase.md @@ -28,6 +28,8 @@ The iterator `pos` must be valid and dereferenceable. Thus the `end()` iterator The iterator `first` does not need to be dereferenceable if `first==last`: erasing an empty range is a no-op. +If erase is called with valid and dereferenceable iterators for JSON values of type number, string, or boolean, the value will be changed to `null`. + ## Parameter - `pos`: iterator to the element to remove