[#nlohmann-basic_json-00-accept-04] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::accept :relfileprefix: ../../ :mrdocs: check if the input is valid JSON == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename IteratorType> static bool accept( IteratorType first, IteratorType last, bool const ignore_comments = false, bool const ignore_trailing_commas = false); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#