Added JSON and list checks to app sdk parsing

This commit is contained in:
frikky
2022-03-26 11:33:01 +01:00
parent cff2b88845
commit 3d5e02d8da
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -3050,7 +3050,7 @@ class AppBase:
try:
for key, value in params.items():
try:
if isinstance(value, str):
if isinstance(value, str) and ((value.startswith("{") and value.endswith("}")) or (value.startswith("[") and value.endswith("]"))):
params[key] = ast.literal_eval(value)
except Exception as e:
self.logger.info(f"[DEBUG] Failed parsing value with ast: {e}")