From 4f6500ad8348603a799416a6235e99e021b71cc9 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Mon, 8 Aug 2022 15:41:45 +0300 Subject: [PATCH] Island: Use python json encoder instead of flask Flask json acts strange and doesn't trigger the "default" method when it encounters CredentialTypeEnum, even though it can't serialize it --- monkey/monkey_island/cc/services/representations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/representations.py b/monkey/monkey_island/cc/services/representations.py index 2fbdf6299..118e80aca 100644 --- a/monkey/monkey_island/cc/services/representations.py +++ b/monkey/monkey_island/cc/services/representations.py @@ -5,7 +5,7 @@ from typing import Any import bson from flask import make_response -from flask.json import JSONEncoder, dumps +from json import JSONEncoder, dumps from common.utils import IJSONSerializable