def METHOD_NAME(file1, file2):
  if not os.path.isfile(file1):
    raise Exception("Error: The following json file does not exist: '" + file1 +"'")
  with open(file1) as f:
    data1 = json.dumps(json.load(f), indent=2)
  if not os.path.isfile(file2):
    raise Exception("Error: The following json file does not exist: '" + file2 +"'")
  with open(file2) as f:
    data2 = json.dumps(json.load(f), indent=2)
  if data1 != data2:
      # Print out the contents of file 1
      print ("\nFile1 : "+ file1)
      print ("vvvvv")
      print (data1)
      print ("^^^^^")
      # Print out the contents of file 1
      print ("\nFile2 : "+ file2)
      print ("vvvvv")
      print (data2)
      print ("^^^^^")
      raise Exception("Error: The two files are not the same")