mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-23 18:08:37 +08:00
20 lines
420 B
Java
20 lines
420 B
Java
package com.alibaba.json.bvt.bug;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import junit.framework.TestCase;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
public class Issue171 extends TestCase {
|
|
|
|
public void test_for_issue() throws Exception {
|
|
Map m = new HashMap();
|
|
m.put("a", "\u000B");
|
|
String json = JSON.toJSONString(m);
|
|
System.out.println(json);
|
|
JSON.parse(json);
|
|
}
|
|
}
|