From a108701b962636c03e3693c1cf136fe99de85ce0 Mon Sep 17 00:00:00 2001 From: mas2hc Date: Wed, 12 Jul 2023 15:03:12 +0700 Subject: [PATCH] Fix the issue when handling nested params in list --- JsonPreprocessor/CJsonPreprocessor.py | 43 +++++++++++++++++++++------ 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/JsonPreprocessor/CJsonPreprocessor.py b/JsonPreprocessor/CJsonPreprocessor.py index 227760ce..4bc6efef 100644 --- a/JsonPreprocessor/CJsonPreprocessor.py +++ b/JsonPreprocessor/CJsonPreprocessor.py @@ -664,6 +664,18 @@ def __handleStrNoneTrueFalse(objJson): else: oJson[k] = v return oJson + + def __handleListElements(sInput : str) -> str: + items = re.split("\s*,\s*", sInput) + j=0 + newItem = "" + for item in items: + j+=1 + if j