[#nlohmann-basic_json-00-sax_parse-04]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::sax&lowbar;parse
:relfileprefix: ../../
:mrdocs:

generate SAX events

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class IteratorType,
    class SAX&gt;
&lsqb;&lsqb;&lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
static
bool
sax&lowbar;parse(
    IteratorType first,
    IteratorType last,
    SAX* sax,
    xref:nlohmann/basic_json-00/input_format_t.adoc[input&lowbar;format&lowbar;t] format = input&lowbar;format&lowbar;t&colon;&colon;json,
    bool const strict = true,
    bool const ignore&lowbar;comments = false,
    bool const ignore&lowbar;trailing&lowbar;commas = false);
----


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