_peekOne = function( t, objPath ) {

  this.stat(HMEVENT.beforePeek, { file: t, target: objPath });

  // Load the input file JSON 1st
  const obj = safeLoadJSON(t);

  // Fetch the requested object path (or the entire file)
  let tgt = null;
  if (!obj.ex) {
    tgt = objPath ? __.get(obj.json, objPath) : obj.json;
  }

  //# safeLoadJSON can only return a READ error or a PARSE error
  let pkgError = null;
  if (obj.ex) {
    const errCode = obj.ex.op === 'parse' ? HMSTATUS.parseError : HMSTATUS.readError;
    if (errCode === HMSTATUS.readError) {
      obj.ex.quiet = true;
    }
    pkgError = {fluenterror: errCode, inner: obj.ex};
  }

  // Fire the 'afterPeek' event with collected info
  this.stat(HMEVENT.afterPeek, {
    file: t,
    requested: objPath,
    target: obj.ex ? undefined : tgt,
    error: pkgError
  }
  );

  return {
    val: obj.ex ? undefined : tgt,
    error: pkgError
  };
}
Peek at a single resume, resume section, or resume field.