Since Flask 2.2.0 json_encoder and json_decoder properties on app are deprecated and was set to None by default (Flask changelog)
JWTManager._encode_jwt_from_config method relies on it. It now raises errors on datetime, UUID, etc. values serialisation.