! @brief create a JSON value from MessagePack input @param[in] strict whether to expect the input to be consumed completed @return JSON value created from MessagePack input @throw parse_error.110 if input ended unexpectedly or the end of file was not reached when @a strict was set to true @throw parse_error.112 if unsupported byte was read
| 4908 | @throw parse_error.112 if unsupported byte was read |
| 4909 | */ |
| 4910 | BasicJsonType parse_msgpack(const bool strict) |
| 4911 | { |
| 4912 | const auto res = parse_msgpack_internal(); |
| 4913 | if (strict) |
| 4914 | { |
| 4915 | get(); |
| 4916 | expect_eof(); |
| 4917 | } |
| 4918 | return res; |
| 4919 | } |
| 4920 | |
| 4921 | /*! |
| 4922 | @brief create a JSON value from UBJSON input |