Skip to main content

from_str_jsonc

Function from_str_jsonc 

Source
pub fn from_str_jsonc<T>(input: &str) -> Result<T, DeserializeError>
where T: Facet<'static>,
Expand description

Deserialize a JSONC string (JSON with // and /* */ comments) into an owned type.

Identical to from_str except that comments are allowed anywhere whitespace is allowed. Trailing commas are also accepted (they work in the plain JSON parser too).