| 23342 | JSON_HEDLEY_WARN_UNUSED_RESULT |
| 23343 | JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len)) |
| 23344 | static basic_json parse(detail::span_input_adapter&& i, |
| 23345 | const parser_callback_t cb = nullptr, |
| 23346 | const bool allow_exceptions = true, |
| 23347 | const bool ignore_comments = false) |
| 23348 | { |
| 23349 | basic_json result; |
| 23350 | parser(i.get(), cb, allow_exceptions, ignore_comments).parse(true, result); |
| 23351 | return result; |
| 23352 | } |
| 23353 | |
| 23354 | /// @brief check if the input is valid JSON |
| 23355 | /// @sa https://json.nlohmann.me/api/basic_json/accept/ |
no test coverage detected