From f8f380392244a7103623c396b60a881d67ac3bda Mon Sep 17 00:00:00 2001 From: mas2hc Date: Fri, 2 Dec 2022 15:00:24 +0700 Subject: [PATCH] Update syntax of json configuration feature --- JsonPreprocessor/CJsonPreprocessor.py | 2 ++ 1 file changed, 2 insertions(+) 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: