| 23607 | /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/ |
| 23608 | template<typename InputType> |
| 23609 | JSON_HEDLEY_WARN_UNUSED_RESULT |
| 23610 | static basic_json from_msgpack(InputType&& i, |
| 23611 | const bool strict = true, |
| 23612 | const bool allow_exceptions = true) |
| 23613 | { |
| 23614 | basic_json result; |
| 23615 | detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); |
| 23616 | auto ia = detail::input_adapter(std::forward<InputType>(i)); |
| 23617 | const bool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::msgpack).sax_parse(input_format_t::msgpack, &sdp, strict); |
| 23618 | return res ? result : basic_json(value_t::discarded); |
| 23619 | } |
| 23620 | |
| 23621 | /// @brief create a JSON value from an input in MessagePack format |
| 23622 | /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/ |
nothing calls this directly
no test coverage detected