JSONObject toBean -转换实体--bean中包含一个或多个对象
如: 在一个Bean中还包含有一个或多个的List对象等, 这时如果像转换其他方法那样转换的话, 就会出现一个怪现象,
使用jar名来作为List的标记, 这是因为没有为该list声明, 找不到。 在这种情况下,需要声明下
Map<String, Class> classMap = new HashMap<String, Class>;
classMap.put("testList" , InfoTest.class);//testList为bean 的属性名
JSONObject.toBean(json, InfoTest.class, classMap);