| 23251 | template <typename InputType, typename SAX> |
| 23252 | JSON_HEDLEY_NON_NULL(2) |
| 23253 | static bool sax_parse(InputType&& i, SAX* sax, |
| 23254 | input_format_t format = input_format_t::json, |
| 23255 | const bool strict = true, |
| 23256 | const bool ignore_comments = false) |
| 23257 | { |
| 23258 | auto ia = detail::input_adapter(std::forward<InputType>(i)); |
| 23259 | return format == input_format_t::json |
| 23260 | ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict) |
| 23261 | : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sax, strict); |
| 23262 | } |
| 23263 | |
| 23264 | /// @brief generate SAX events |
| 23265 | /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/ |
no test coverage detected