pub fn parse_lockfile( source: &str, path: Option<&Path>, ) -> Result<Lockfile, LockfileError>
Parse a JSON lockfile. If path is supplied, it is attached to any returned error for diagnostic display.
path