Function to_string
fn to_string<T: Serialize>(value: &T) -> Result<String, Error>
Serialize a type implementing Serialize to a JSON5 string.
Example
use Serialize;
let config = Config ;
assert_eq!;
# Ok::
Errors
Fails if we can't express T in JSON5 (e.g. we try to serialize an object key without an
obvious string representation).