| 4110 | template <typename InputType, typename SAX> |
| 4111 | JSON_HEDLEY_NON_NULL(2) |
| 4112 | static bool sax_parse(InputType&& i, SAX* sax, |
| 4113 | input_format_t format = input_format_t::json, |
| 4114 | const bool strict = true, |
| 4115 | const bool ignore_comments = false) |
| 4116 | { |
| 4117 | auto ia = detail::input_adapter(std::forward<InputType>(i)); |
| 4118 | return format == input_format_t::json |
| 4119 | ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict) |
| 4120 | : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sax, strict); |
| 4121 | } |
| 4122 | |
| 4123 | /// @brief generate SAX events |
| 4124 | /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/ |
no test coverage detected