code: def read_file(self, path, **kwargs):
          
          # TODO support JSON here
          # TODO sphinx way of reporting errors in logs?
          subcmd = "jsdoc"
          if os.name == "nt":
              subcmd = ".".join([subcmd, "cmd"])
  
          try:
              parsed_data = json.loads(subprocess.check_output([subcmd, "-X", path]))
              return parsed_data
          except IOError:
              LOGGER.warning("Error reading file: {0}".format(path))
          except TypeError:
              LOGGER.warning("Error reading file: {0}".format(path))
          return None
docs: Read file input into memory, returning deserialized objects
  
          :param path: Path of file to read