def METHOD_NAME(options, indent=None):
    return json.JSONEncoder(
        ensure_ascii=options.get("ascii", False),
        sort_keys=options.get("sort", False),
        separators=options.get("separators"),
        indent=options.get("indent", indent),
        check_circular=False, default=str,
    )