diff --git a/JsonPreprocessor/CJsonPreprocessor.py b/JsonPreprocessor/CJsonPreprocessor.py index c0c8181a..b30ab449 100644 --- a/JsonPreprocessor/CJsonPreprocessor.py +++ b/JsonPreprocessor/CJsonPreprocessor.py @@ -615,6 +615,8 @@ def __handleStrNoneTrueFalse(objJson): for line in sJsonData.splitlines(): if re.search("\${.+}", line): items = re.split("\s*:\s*", line) + if re.match("^\s*\${.+", items[0]): + items[0] = '"' + items[0].strip() + '"' newLine = "" i=0 for item in items: