nlohmann::basic_json::empty

checks whether the container is empty.

Synopsis

Declared in <nlohmann/json.hpp>

bool
empty() const noexcept;

Return Value

whether the JSON value is empty (null values, and empty arrays/objects are empty; all other types are never empty)