{"action":"opened","issue":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/719","repository_url":"https://api.github.com/repos/alibaba/fastjson","labels_url":"https://api.github.com/repos/alibaba/fastjson/issues/719/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/fastjson/issues/719/comments","events_url":"https://api.github.com/repos/alibaba/fastjson/issues/719/events","html_url":"https://github.com/alibaba/fastjson/issues/719","id":164981198,"number":719,"title":"求助枚举属性的序列化问题","user":{"login":"ydq","id":8097340,"avatar_url":"https://avatars.githubusercontent.com/u/8097340?v=3","gravatar_id":"","url":"https://api.github.com/users/ydq","html_url":"https://github.com/ydq","followers_url":"https://api.github.com/users/ydq/followers","following_url":"https://api.github.com/users/ydq/following{/other_user}","gists_url":"https://api.github.com/users/ydq/gists{/gist_id}","starred_url":"https://api.github.com/users/ydq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ydq/subscriptions","organizations_url":"https://api.github.com/users/ydq/orgs","repos_url":"https://api.github.com/users/ydq/repos","events_url":"https://api.github.com/users/ydq/events{/privacy}","received_events_url":"https://api.github.com/users/ydq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T02:30:56Z","updated_at":"2016-07-12T02:30:56Z","closed_at":null,"body":"找到一个 @wenshao 在开源中国之前的一个解答 http://www.oschina.net/question/993587_138280\r\n然后自己实际测试，怎么也无法将枚举序列化成int（ordinal）。demo如下：\r\n\r\n---\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8097340/16753212/82f7829a-481a-11e6-9553-82036626ee86.png)\r\n\r\n---\r\n\r\n无论是在字段上注解还是在序列化时调用，都无法将枚举序列化成int（ordinal），求助如何才能正确的将枚举属性序列化成int值呢？\r\n"}}
{"actor":{"display_login":"ydq"}}