code: def loadcache(json_file):
      
      f = open(json_file, 'r')
      data = f.read()
      f.close()
      try:
          apicache = json.loads(data)
      except ValueError as e:
          print("Error processing json:", json_file, e)
          return {}
      return apicache
docs: Loads json file as dictionary, feeds it to monkeycache and spits result