{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/1541","repository_url":"https://api.github.com/repos/alibaba/fastjson","labels_url":"https://api.github.com/repos/alibaba/fastjson/issues/1541/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/fastjson/issues/1541/comments","events_url":"https://api.github.com/repos/alibaba/fastjson/issues/1541/events","html_url":"https://github.com/alibaba/fastjson/issues/1541","id":267887026,"number":1541,"title":"1.2.35版本 JSON.toJSONString(List<User>, SerializerFeature.WriteMapNullValue); 问题","user":{"login":"malagebi","id":10953561,"avatar_url":"https://avatars3.githubusercontent.com/u/10953561?v=4","gravatar_id":"","url":"https://api.github.com/users/malagebi","html_url":"https://github.com/malagebi","followers_url":"https://api.github.com/users/malagebi/followers","following_url":"https://api.github.com/users/malagebi/following{/other_user}","gists_url":"https://api.github.com/users/malagebi/gists{/gist_id}","starred_url":"https://api.github.com/users/malagebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malagebi/subscriptions","organizations_url":"https://api.github.com/users/malagebi/orgs","repos_url":"https://api.github.com/users/malagebi/repos","events_url":"https://api.github.com/users/malagebi/events{/privacy}","received_events_url":"https://api.github.com/users/malagebi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-24T03:39:56Z","updated_at":"2017-10-27T02:02:20Z","closed_at":null,"author_association":"NONE","body":"例如：List<User> 对象为  [ {id:1,name:zhangsan,mobile:1354562} ]\r\nString json = JSON.toJSONString(List<User>, SerializerFeature.WriteMapNullValue);\r\n输出的字符串顺序 不会按照 id  name  mobile 这样的顺序"},"comment":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/comments/339851356","html_url":"https://github.com/alibaba/fastjson/issues/1541#issuecomment-339851356","issue_url":"https://api.github.com/repos/alibaba/fastjson/issues/1541","id":339851356,"user":{"login":"wenshao","id":1166785,"avatar_url":"https://avatars3.githubusercontent.com/u/1166785?v=4","gravatar_id":"","url":"https://api.github.com/users/wenshao","html_url":"https://github.com/wenshao","followers_url":"https://api.github.com/users/wenshao/followers","following_url":"https://api.github.com/users/wenshao/following{/other_user}","gists_url":"https://api.github.com/users/wenshao/gists{/gist_id}","starred_url":"https://api.github.com/users/wenshao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenshao/subscriptions","organizations_url":"https://api.github.com/users/wenshao/orgs","repos_url":"https://api.github.com/users/wenshao/repos","events_url":"https://api.github.com/users/wenshao/events{/privacy}","received_events_url":"https://api.github.com/users/wenshao/received_events","type":"User","site_admin":false},"created_at":"2017-10-27T02:02:20Z","updated_at":"2017-10-27T02:02:20Z","author_association":"OWNER","body":"加上SerializerFeature.MapSortField会对HashMap排序再输出\r\n```java\r\nString json = JSON.toJSONString(List, SerializerFeature.WriteMapNullValue, SerializerFeature.MapSortField);\r\n```"}}
{"actor":{"display_login":"wenshao"}}