Skip to main content

parse_option_value

Function parse_option_value 

Source
pub fn parse_option_value(s: &str) -> Value
Expand description

Smart-coerce a string into a JSON value.

Tries, in order: integer, float, bool (true/false), null, fallback to string.