MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / basic_json from_msgpack

Function basic_json from_msgpack

Source/external/json.hpp:23565–23575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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/

Callers

nothing calls this directly

Calls 3

input_adapterFunction · 0.85
basic_jsonFunction · 0.85
sax_parseMethod · 0.80

Tested by

no test coverage detected