forked from alibaba/fastjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBug_6.java
More file actions
executable file
·35 lines (22 loc) · 772 Bytes
/
Copy pathBug_6.java
File metadata and controls
executable file
·35 lines (22 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.alibaba.json.bvt.bug;
import java.util.HashMap;
import java.util.List;
import junit.framework.TestCase;
import com.alibaba.fastjson.JSON;
public class Bug_6 extends TestCase {
public void test_bug6() throws Exception {
Entity entity = new Entity();
String jsonString = JSON.toJSONString(entity);
System.out.println(jsonString);
JSON.parseObject(jsonString, Entity.class);
}
public static class Entity {
private List<HashMap<String, String>> list = null;
public List<HashMap<String, String>> getList() {
return list;
}
public void setList(List<HashMap<String, String>> list) {
this.list = list;
}
}
}