code: def get_json_files(files, recursive=False):
      
      json_files = []
  
      if not files:
          return json_files
  
      for fn in files:
          if os.path.isdir(fn):
              children = list_json_files(fn, recursive)
              json_files.extend(children)
          elif is_json(fn):
              json_files.append(fn)
          else:
              continue
  
      if not json_files:
          raise NoJSONFileFoundError("No JSON files found!")
      return json_files
docs: Return a list of files to validate from `files`. If a member of `files`
      is a directory, its children with a ``.json`` extension will be added to
      the return value.
  
      Args:
          files: A list of file paths and/or directory paths.
          recursive: If ``true``, this will descend into any subdirectories
              of input directories.
  
      Returns:
          A list of file paths to validate.