Function vector::serde::json::to_string

source ·
pub fn to_string(value: impl Serialize) -> String
Expand description

Serialize the given data structure as JSON to String.

§Panics

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