diff --git a/JsonPreprocessor/CJsonPreprocessor.py b/JsonPreprocessor/CJsonPreprocessor.py index 5301cd22..c439b20d 100644 --- a/JsonPreprocessor/CJsonPreprocessor.py +++ b/JsonPreprocessor/CJsonPreprocessor.py @@ -726,6 +726,8 @@ def __loadNestedValue(initValue: str, sInputStr: str, bKey=False, key=''): valueProcessed = valueProcessed.replace(CNameMangling.DUPLICATEDKEY_02.value, '') raise Exception(f"The variable '{valueProcessed}' is not available!") if bKey and type(ldict['value']) in [list, dict]: + if CNameMangling.AVOIDDATATYPE.value in valueProcessed: + valueProcessed = valueProcessed.replace(CNameMangling.AVOIDDATATYPE.value, '') self.__reset(bCleanGlobalVars=True) while 'str(' in key: key = re.sub("str\(([0-9A-Za-z\._\${}'\[\]]+)\)", "\\1", key)