From 578c7599b97ccfc0c0083c6b4d94c80894e308b4 Mon Sep 17 00:00:00 2001 From: liuxtq Date: Wed, 11 Dec 2024 11:09:52 +0800 Subject: [PATCH] =?UTF-8?q?1.fix=20Gson.toJson=E6=96=B9=E6=B3=95=E5=9C=A8z?= =?UTF-8?q?eppelin=200.11.2=E4=B8=8A=E6=89=A7=E8=A1=8C=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/apache/zeppelin/iginx/IginxInterpreter8.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java b/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java index 6a686d3..018783c 100644 --- a/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java +++ b/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java @@ -12,7 +12,7 @@ import cn.edu.tsinghua.iginx.thrift.SqlType; import cn.edu.tsinghua.iginx.utils.FormatUtils; import cn.edu.tsinghua.iginx.utils.Pair; -import com.google.gson.Gson; +import com.alibaba.fastjson2.JSON; import java.io.*; import java.math.BigDecimal; import java.math.RoundingMode; @@ -372,8 +372,8 @@ public String buildTreeForShowColumns(SessionExecuteSqlResult sqlResult, String } List nodeList = new ArrayList<>(); int depth = tree.traverseToHighchartsTreeNodes(tree.getRoot(), nodeList); - Gson gson = new Gson(); - String jsonString = gson.toJson(nodeList); + + String jsonString = JSON.toJSONString(nodeList); String html = content .toString()