parameters: (filename)
return_statement: return False
docstring: Returns 'True' if 'filename' names a valid JSON output file.
      'False' otherwise.
docstring_summary: Returns 'True' if 'filename' names a valid JSON output file.
      'False' otherwise.
docstring_tokens: Returns True if filename names a valid JSON output file . False otherwise .
function: def is_json_file(filename):
      """
      Returns 'True' if 'filename' names a valid JSON output file.
      'False' otherwise.
      """
      try:
          with open(filename, 'r') as f:
              json.load(f)
          return True
      except BaseException:
          pass
      return False
function_tokens: def is_json_file ( filename ) : try : with open ( filename , 'r' ) as f : json . load ( f ) return True except BaseException : pass return False