diff --git a/ask-sdk-core/ask_sdk_core/serialize.py b/ask-sdk-core/ask_sdk_core/serialize.py index c3f868d..2f7228a 100644 --- a/ask-sdk-core/ask_sdk_core/serialize.py +++ b/ask-sdk-core/ask_sdk_core/serialize.py @@ -188,7 +188,7 @@ def __deserialize(self, payload, obj_type): # Get object type for each item in the list # Deserialize each item using the object type. sub_obj_type = re.match( - 'list\[(.*)\]', obj_type) + 'list\\[(.*)\\]', obj_type) if sub_obj_type is None: return [] sub_obj_types = sub_obj_type.group(1) @@ -209,7 +209,7 @@ def __deserialize(self, payload, obj_type): # Get object type for each k,v pair in the dict # Deserialize each value using the object type of v. sub_obj_type = re.match( - 'dict\(([^,]*), (.*)\)', obj_type) + 'dict\\(([^,]*), (.*)\\)', obj_type) if sub_obj_type is None: return {} sub_obj_types = sub_obj_type.group(2)