From 30ac286ab895693f905349268287ed9eb6ff95e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9B=AA=E5=B3=B0?= Date: Thu, 10 Oct 2024 15:16:06 +0800 Subject: [PATCH] return empty list for LoadJsonStrToList when inputing is blank --- easyapi/UtilNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyapi/UtilNode.py b/easyapi/UtilNode.py index ebd51c9..29634f7 100644 --- a/easyapi/UtilNode.py +++ b/easyapi/UtilNode.py @@ -555,7 +555,7 @@ class LoadJsonStrToList: def load_json(self, json_str: str): if len(json_str.strip()) == 0: - return ([{}],) + return ([],) json = simplejson.loads(json_str) if isinstance(json, list): return (json,)