# xjson: serialize to/from JSON

Defined in `xtensor/xjson.hpp`

Warning

doxygenfunction: Unable to resolve function “xt::to_json” with arguments (nlohmann::json&, const E&) in doxygen xml output for project “xtensor” from directory: ../xml. Potential matches:

    - template<template<typename U, typename V, typename ...Args> class M, class E> enable_xexpression<E> to_json(nlohmann::basic_json<M> &j, const E &e)

Warning

doxygenfunction: Unable to resolve function “xt::from_json” with arguments (const nlohmann::json&, E&) in doxygen xml output for project “xtensor” from directory: ../xml. Potential matches:

    - template<template<typename U, typename V, typename ...Args> class M, class E> enable_xcontainer_semantics<E> from_json(const nlohmann::basic_json<M> &j, E &e)