This commit is contained in:
Looly 2022-06-15 12:05:06 +08:00
parent fe36cd36e6
commit 8af2bd79f8

View File

@ -0,0 +1,15 @@
package cn.hutool.json;
import org.junit.Assert;
import org.junit.Test;
public class Issue2380Test {
@Test
public void parseObjTest(){
// 多个都好做容错处理
final String s = "{\"k\":\"v\",}";
final JSONObject jsonObject = JSONUtil.parseObj(s);
Assert.assertEquals("{\"k\":\"v\"}", jsonObject.toString());
}
}