[#nlohmann-basic_json-0e-accept-02]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0e.adoc[basic&lowbar;json&lt;&gt;]::accept
:relfileprefix: ../../
:mrdocs:

check if the input is valid JSON

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename IteratorType&gt;
static
bool
accept(
    IteratorType first,
    IteratorType last,
    bool const ignore&lowbar;comments = false,
    bool const ignore&lowbar;trailing&lowbar;commas = false);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
