Skip to main content

parse_kv_object

Function parse_kv_object 

Source
fn parse_kv_object(
    v: &Value,
    field: &str,
) -> Result<Vec<(String, String)>, String>
Expand description

Parses a {name: scalar-template} object into ordered pairs; numbers and bools are stringified, nested shapes are rejected.