[#nlohmann-basic_json-05-sax_parse-08]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-05.adoc[basic&lowbar;json&lt;&gt;]::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;typename SAX&gt;
&lsqb;&lsqb;deprecated, &lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
static
bool
sax&lowbar;parse(
    detail::span&lowbar;input&lowbar;adapter&& i,
    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);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: Since 3&period;8&period;0&semi; use sax&lowbar;parse(ptr, ptr &plus; len, &period;&period;&period;). Use of this entity is allowed but discouraged.
====

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