Skip to content

Commit

Permalink
去掉转义操作
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnlin committed Dec 8, 2020
1 parent d1be194 commit 2d66adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hi/chyl/json/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ private void formatJson() {
Gson gson = gb.create();
String jsonStr = gson.toJson(jsonEle);
if (jsonStr != null) {
jsonStr = StringEscapeUtils.unescapeJava(jsonStr);
// jsonStr = StringEscapeUtils.unescapeJava(jsonStr);
ta.setText(jsonStr);
}
} else {
Expand Down Expand Up @@ -716,7 +716,7 @@ private void sortFormatJson() {
Gson gson = gb.create();
String jsonStr = gson.toJson(jsonEle);
if (jsonStr != null) {
jsonStr = StringEscapeUtils.unescapeJava(jsonStr);
// jsonStr = StringEscapeUtils.unescapeJava(jsonStr);
ta.setText(jsonStr);
}
} else {
Expand Down

0 comments on commit 2d66adf

Please sign in to comment.