pub fn parse_json<T: DeserializeOwned>( path: &Path, content: String, ) -> Result<T, Error>
Parse a JSON lockfile document, attaching a miette source span on failure so the fancy handler can point at the offending byte.