nlohmann::basic_json::sax_parse

generate SAX events (iterator pair, or iterator+sentinel pair for C++20 ranges support)

Synopsis

Declared in <nlohmann/json.hpp>

template<
    class IteratorType,
    class SAX,
    class SentinelType = IteratorType>
requires detail::can_compare_ne<IteratorType, SentinelType>::value
[[__nonnull__]]
static
bool
sax_parse(
    IteratorType first,
    SentinelType last,
    SAX* sax,
    input_format_t format = input_format_t::json,
    bool const strict = true,
    bool const ignore_comments = false,
    bool const ignore_trailing_commas = false);