| 23563 | /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/ |
| 23564 | template<typename InputType> |
| 23565 | JSON_HEDLEY_WARN_UNUSED_RESULT |
| 23566 | static basic_json from_msgpack(InputType&& i, |
| 23567 | const bool strict = true, |
| 23568 | const bool allow_exceptions = true) |
| 23569 | { |
| 23570 | basic_json result; |
| 23571 | detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); |
| 23572 | auto ia = detail::input_adapter(std::forward<InputType>(i)); |
| 23573 | const bool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::msgpack).sax_parse(input_format_t::msgpack, &sdp, strict); |
| 23574 | return res ? result : basic_json(value_t::discarded); |
| 23575 | } |
| 23576 | |
| 23577 | /// @brief create a JSON value from an input in MessagePack format |
| 23578 | /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/ |
nothing calls this directly
no test coverage detected