Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gson に問題があり、文字列をエスケープしています。
Gson gson = new GsonBuilder().disableHtmlEscaping().create(); String test = "\r\n"; JsonElement result = gson.toJsonTree(test); String string = gson.toJson(result);
この文字列の後はこれ"\\r\\n"を回避する方法は?
"\\r\\n"