1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//! Contains an implementation of JSON serialization format. use serde_json; /// A representation of a JSON data. Use it as wrapper to /// set a format you want to use for conversion: /// /// ```rust /// // Converts (lazy) data to a Json /// let dump = Json(&data); /// /// // Converts JSON string to a data (lazy). /// let Json(data) = dump; /// ``` pub struct Json<T>(pub T); text_format!(Json based on serde_json); binary_format!(Json based on serde_json);