Skip to main content

parse_lenient

Function parse_lenient 

Source
pub fn parse_lenient(text: &str, index: usize) -> Option<(JsValue, usize)>
Expand description

Parse a value leniently: comments are skipped, trailing commas and unquoted keys allowed, and anything computed becomes JsValue::Expression. Returns the value and where it ends.