It looks like you want to import from bson not pymongo. I believe json_util was moved to that module recently.
https://pymongo.readthedocs.io/en/stable/api/bson/json_util.html
It looks like you want to import from bson not pymongo. I believe json_util was moved to that module recently.
https://pymongo.readthedocs.io/en/stable/api/bson/json_util.html