修复展示错误
This commit is contained in:
@@ -279,6 +279,11 @@ def compare_json_arrays(array1, array2):
|
||||
|
||||
def format_json_for_display(value):
|
||||
"""格式化JSON用于显示"""
|
||||
# 处理None值
|
||||
if value is None:
|
||||
return "null"
|
||||
|
||||
# 处理非字符串类型
|
||||
if not isinstance(value, str):
|
||||
return str(value)
|
||||
|
||||
|
Reference in New Issue
Block a user