//! # json
//! a re-export of serde_json with error wrapping and only operates on Result<T, E> where T & E impl Serialize
useserde::Serialize;usesuper::error::Error;/// a simple re-export wrapper of serde_json::to_string for Result<T, E>
pubfnjson<T: Serialize, E: Serialize>(result:&Result<T, E>)->Result<String, Error>{Ok(serde_json::to_string(result)?)}