{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/917","repository_url":"https://api.github.com/repos/alibaba/fastjson","labels_url":"https://api.github.com/repos/alibaba/fastjson/issues/917/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/fastjson/issues/917/comments","events_url":"https://api.github.com/repos/alibaba/fastjson/issues/917/events","html_url":"https://github.com/alibaba/fastjson/issues/917","id":191232081,"number":917,"title":"自身在自身的map集合属性里，序列化后，反序列化回来有问题","user":{"login":"2695691406","id":17892393,"avatar_url":"https://avatars.githubusercontent.com/u/17892393?v=3","gravatar_id":"","url":"https://api.github.com/users/2695691406","html_url":"https://github.com/2695691406","followers_url":"https://api.github.com/users/2695691406/followers","following_url":"https://api.github.com/users/2695691406/following{/other_user}","gists_url":"https://api.github.com/users/2695691406/gists{/gist_id}","starred_url":"https://api.github.com/users/2695691406/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2695691406/subscriptions","organizations_url":"https://api.github.com/users/2695691406/orgs","repos_url":"https://api.github.com/users/2695691406/repos","events_url":"https://api.github.com/users/2695691406/events{/privacy}","received_events_url":"https://api.github.com/users/2695691406/received_events","type":"User","site_admin":false},"labels":[{"id":374075646,"url":"https://api.github.com/repos/alibaba/fastjson/labels/needs%20info","name":"needs info","color":"bfd4f2","default":false},{"id":417877445,"url":"https://api.github.com/repos/alibaba/fastjson/labels/question","name":"question","color":"5319e7","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-23T10:18:22Z","updated_at":"2016-11-24T05:27:33Z","closed_at":"2016-11-24T05:27:33Z","body":"- 问题描述：当一个序列化对象的一个object属性里存放了一个map，map中存放了序列化对象本身，反序列化的时候会出问题。引用本身的key-value，value变成了当前的map\r\n\r\n- 我们的用例\r\n        Map<String,Object> map=new HashMap();\r\n        map.put(\"roleResource类型\", roleResource)\r\n map.put(\"accountDO类型\", accountDO);\r\n  map.put(\"account类型\",**account**);\r\n  **account**.setObj(map);\r\n  byte[] bytes = JSON.toJSONString(**account**, SerializerFeature.WriteClassName).getBytes(\"utf-8\");\r\n   Account **accountDeserialize** = JSON.parseObject(new String(bytes, \"utf-8\"), Account.class);\r\n\r\n- account为序列化对象实体类本身。\r\n\r\n- obj为object类型\r\n\r\n[图片描述问题](http://chuantu.biz/t5/42/1479895135x1018211759.png)\r\n"},"comment":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/comments/262693214","html_url":"https://github.com/alibaba/fastjson/issues/917#issuecomment-262693214","issue_url":"https://api.github.com/repos/alibaba/fastjson/issues/917","id":262693214,"user":{"login":"2695691406","id":17892393,"avatar_url":"https://avatars.githubusercontent.com/u/17892393?v=3","gravatar_id":"","url":"https://api.github.com/users/2695691406","html_url":"https://github.com/2695691406","followers_url":"https://api.github.com/users/2695691406/followers","following_url":"https://api.github.com/users/2695691406/following{/other_user}","gists_url":"https://api.github.com/users/2695691406/gists{/gist_id}","starred_url":"https://api.github.com/users/2695691406/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2695691406/subscriptions","organizations_url":"https://api.github.com/users/2695691406/orgs","repos_url":"https://api.github.com/users/2695691406/repos","events_url":"https://api.github.com/users/2695691406/events{/privacy}","received_events_url":"https://api.github.com/users/2695691406/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T05:27:33Z","updated_at":"2016-11-24T05:27:33Z","body":"1.2.21这个版本解决了"}}
{"actor":{"display_login":"2695691406"}}