Function morpheus::utilities::cast_from_json
Defined in File json_types.cpp
-
pybind11::object morpheus::utilities::cast_from_json(const morpheus::utilities::json_t &source)
Convert a
json_t
object to a pybind11 object. The difference tomrc::pymrc::cast_from_json()
is that if the object cannot be serialized, it checks if the object contains a supported binary type. Otherwise, pybind11::none is returned.- Parameters
source – :
json_t
object- Returns
pybind11 object