Skip to main content

to_yaml

Function to_yaml 

Source
pub fn to_yaml(v: &Value) -> String
Expand description

Render v as block-style YAML. Strings are always double-quoted with JSON’s escapes (a YAML double-quoted scalar), so nothing a schema holds — "true", "1.0", a regex — is read back as another type.