diff --git a/hutool-json/src/test/java/IssueIAP4GMTest.java b/hutool-json/src/test/java/IssueIAP4GMTest.java new file mode 100644 index 000000000..69a6e6af9 --- /dev/null +++ b/hutool-json/src/test/java/IssueIAP4GMTest.java @@ -0,0 +1,13 @@ +import cn.hutool.json.JSONObject; +import cn.hutool.json.JSONUtil; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +public class IssueIAP4GMTest { + @Test + void parse() { + String res = "{\"uid\":\"asdf\\n\"}"; + final JSONObject entries = JSONUtil.parseObj(res); + Assertions.assertEquals("asdf\n", entries.getStr("uid")); + } +}