From e5596d8e2624a2861e3291ba9b0b37819e1d8632 Mon Sep 17 00:00:00 2001 From: Rob Simpson Date: Tue, 13 May 2025 12:41:07 -0500 Subject: [PATCH] fix_issue-208 --- ask-sdk-core/ask_sdk_core/serialize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)