Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions JsonPreprocessor/CJsonPreprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import sys
import platform
import copy
import shlex

class CSyntaxType():
python = "python"
Expand Down Expand Up @@ -707,6 +708,11 @@ def __handleListElements(sInput : str) -> str:
for line in sJsonData.splitlines():
if line == '' or line.isspace():
continue
try:
listDummy = shlex.split(line)
except Exception as error:
raise Exception(f"\n{str(error)} in line: '{line}'")

if re.search("\${.+}", line):
items = re.split("\s*:\s*", line)
newLine = ""
Expand Down