MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / basic_json from_bjdata

Function basic_json from_bjdata

extern/json/json.hpp:23718–23728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23716 /// @sa https://json.nlohmann.me/api/basic_json/from_bjdata/
23717 template<typename InputType>
23718 JSON_HEDLEY_WARN_UNUSED_RESULT
23719 static basic_json from_bjdata(InputType&& i,
23720 const bool strict = true,
23721 const bool allow_exceptions = true)
23722 {
23723 basic_json result;
23724 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
23725 auto ia = detail::input_adapter(std::forward<InputType>(i));
23726 const bool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::bjdata).sax_parse(input_format_t::bjdata, &sdp, strict);
23727 return res ? result : basic_json(value_t::discarded);
23728 }
23729
23730 /// @brief create a JSON value from an input in BJData format
23731 /// @sa https://json.nlohmann.me/api/basic_json/from_bjdata/

Callers

nothing calls this directly

Calls 4

input_adapterFunction · 0.85
moveFunction · 0.85
basic_jsonFunction · 0.85
sax_parseMethod · 0.80

Tested by

no test coverage detected