pub fn to_json<T: Serialize>(value: &T) -> Result<Value, Error>
The request body of a typed wrapper, as JSON.