{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/194511f19cf47441a1c2e8c23c9cf809?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"194511f19cf47441a1c2e8c23c9cf809","url":"https://api.github.com/users/fjay","login":"fjay","id":958966},"milestone":{"state":"open","open_issues":15,"url":"https://api.github.com/repos/nutzam/nutz/milestones/7","due_on":"2012-10-20T07:00:00Z","number":7,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/e025c5d4283b3dc4f7a306ed2702d904?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e025c5d4283b3dc4f7a306ed2702d904","url":"https://api.github.com/users/zozoh","login":"zozoh","id":174909},"description":"另外一个 bug fix 版本 ","title":"1.b.41","closed_issues":5,"created_at":"2011-10-20T19:38:30Z"},"assignee":null,"labels":[],"updated_at":"2011-10-29T16:19:56Z","comments":7,"closed_at":"2011-10-26T09:42:27Z","url":"https://api.github.com/repos/nutzam/nutz/issues/85","body":"目前nutz json对泛型的支持，采用了NutType，使用方法如下：\r\nList<Abc> list = (List<Abc>) Json.fromJson(\tNutType.list(Abc.class),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tStreams.fileInr(\"org/nutz/json/list.txt\"));\r\n这种写法有些纠结不是嘛，除了不支持多泛型，还得强制执行……\r\n\r\n可以参考下fastjson的写法，最关键的一句是：\r\nList<List<Map<String, Bean>>> list = JSON.parseObject(text, new TypeReference< List<List<Map<String, Bean>>> >() {}); \r\n\r\n完美支持多泛型，而且无缝复制，告别强制转型^_^\r\nhttp://code.alibabatech.com/wiki/display/FastJSON/TypeReference\r\n\r\nSo，各位Nutz大侠们，有空瞅瞅吧……\r\n","html_url":"https://github.com/nutzam/nutz/issues/85","number":85,"title":"让Nutz Json支持多泛型","id":2042025,"created_at":"2011-10-25T07:02:43Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/a80fbf17af994bf9feecbd9094e4d0b6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a80fbf17af994bf9feecbd9094e4d0b6","url":"https://api.github.com/users/fjayblue","login":"fjayblue","id":974030},"updated_at":"2011-10-29T16:19:56Z","url":"https://api.github.com/repos/nutzam/nutz/issues/comments/2565606","body":"zozoh commented  \"TypeReference 貌似不属于标准 JDK 的类吧\"\r\n\r\n(o一-一)\r\n本来就是fastjson自己扩展的一个类\r\n和NutType的作用类似。\r\n\r\n我提这个issue的目的是支持多泛型\r\n目前NutType只支持简单的List、Map，如果我需要\r\n List<List<Map<String, Bean>>\r\n这种泛型\r\n或者Custom<String,Bean>\r\n目前的Nutz Json是不支持的\r\n这才是我这个issue的目的(o一-一)\r\n","id":2565606,"created_at":"2011-10-29T16:19:56Z"}}