function parseJSON(filename, contents) {
  try {
    return JSON.parse(contents);
  } catch (ex) {
    const msg = `Unable to parse JSON: ${ex.message}`;
    logError(filename, null, msg, ex);
  }
  return null;
}
Parses a JSON file
  Note: The returned promise always resolves, it will never reject.

@param {string} filename The name of the file to be tested
@param {string} contents The contents of the file to be tested
@return {Object} The parsed JSON object