xjson: serialize to/from JSON

Defined in xtensor/io/xjson.hpp

Available overload families

  • xt::to_json(nlohmann::basic_json<M>&, const E&)

  • xt::from_json(const nlohmann::basic_json<M>&, E&)

xt::from_json is provided for both container and view semantics.