| 23211 | JSON_HEDLEY_WARN_UNUSED_RESULT |
| 23212 | JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len)) |
| 23213 | static basic_json parse(detail::span_input_adapter&& i, |
| 23214 | const parser_callback_t cb = nullptr, |
| 23215 | const bool allow_exceptions = true, |
| 23216 | const bool ignore_comments = false) |
| 23217 | { |
| 23218 | basic_json result; |
| 23219 | parser(i.get(), cb, allow_exceptions, ignore_comments).parse(true, result); |
| 23220 | return result; |
| 23221 | } |
| 23222 | |
| 23223 | /// @brief check if the input is valid JSON |
| 23224 | /// @sa https://json.nlohmann.me/api/basic_json/accept/ |