[#nlohmann-basic_json-00-clear] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::clear :relfileprefix: ../../ :mrdocs: clears the contents == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void clear() noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#