improve debugging experience

This commit is contained in:
2023-07-12 23:37:55 +08:00
parent 799ec37b65
commit 7078341556
4 changed files with 30 additions and 12 deletions

View File

@ -23,7 +23,7 @@ import java.nio.charset.StandardCharsets;
public class NlpRunner {
public static class NlpJsonConverter extends NlpBaseListener {
public NlpJsonConverter() {
mGsonInstance = new GsonBuilder().setPrettyPrinting().create();
mGsonInstance = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create();
mRoot = new JsonObject();
mSection = new JsonArray();
mSectionStack = new Stack<JsonArray>();