[#nlohmann-basic_json-0c-is_primitive] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::is_primitive :relfileprefix: ../../ :mrdocs: return whether type is primitive == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool is_primitive() const noexcept; ---- == Return Value `true` if the value is null, string, boolean, a number, or binary; `false` otherwise [.small]#Created with https://www.mrdocs.com[MrDocs]#