[][src]Function serde_with::json::nested::serialize

pub fn serialize<T, S>(value: &T, serializer: S) -> Result<S::Ok, S::Error> where
    T: Serialize,
    S: Serializer

Serialize value as string containing JSON

Errors

Serialization can fail if T's implementation of Serialize decides to fail, or if T contains a map with non-string keys.