Skip to main content

parse_json

Function parse_json 

Source
pub fn parse_json<T: DeserializeOwned>(
    path: &Path,
    content: String,
) -> Result<T, Error>
Expand description

Parse a JSON lockfile document, attaching a miette source span on failure so the fancy handler can point at the offending byte.