Skip to main content

parse_json_value

Function parse_json_value 

Source
pub fn parse_json_value(text: &str) -> Option<Value>
Expand description

Parses JSON text into a Value, or None on malformed input. Integral numbers become Value::Int, the rest Value::FloatValue’s derived equality deliberately treats Int(2) and Float(2.0) as different.