def METHOD_NAME(dict, filename):
    filename = os.path.expanduser(filename)
    f = open(filename, 'w')
    _json.dump(dict, f,
              sort_keys=False, indent=0)
    f.close()
    return filename