{"action":"created","issue":{"url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/277","labels_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/277/comments","events_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/277/events","html_url":"https://github.com/SwiftyJSON/SwiftyJSON/issues/277","id":95837753,"number":277,"title":"An integer is parsed as a `String` and getting its `numberValue` returns a `Double`, which crashes related code","user":{"login":"duci9y","id":8692416,"avatar_url":"https://avatars.githubusercontent.com/u/8692416?v=3","gravatar_id":"","url":"https://api.github.com/users/duci9y","html_url":"https://github.com/duci9y","followers_url":"https://api.github.com/users/duci9y/followers","following_url":"https://api.github.com/users/duci9y/following{/other_user}","gists_url":"https://api.github.com/users/duci9y/gists{/gist_id}","starred_url":"https://api.github.com/users/duci9y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duci9y/subscriptions","organizations_url":"https://api.github.com/users/duci9y/orgs","repos_url":"https://api.github.com/users/duci9y/repos","events_url":"https://api.github.com/users/duci9y/events{/privacy}","received_events_url":"https://api.github.com/users/duci9y/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-18T16:19:14Z","updated_at":"2015-07-28T17:04:50Z","closed_at":null,"body":"JSON of the form:\r\n\r\n    \"code\": 301\r\n\r\nis parsed as a `String`, when it should be parsed as an `Int`. Getting its `numberValue` returns an `NSNumber` containing a `Double`, which crashes some code. "},"comment":{"url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/comments/125680236","html_url":"https://github.com/SwiftyJSON/SwiftyJSON/issues/277#issuecomment-125680236","issue_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/277","id":125680236,"user":{"login":"tangplin","id":272929,"avatar_url":"https://avatars.githubusercontent.com/u/272929?v=3","gravatar_id":"","url":"https://api.github.com/users/tangplin","html_url":"https://github.com/tangplin","followers_url":"https://api.github.com/users/tangplin/followers","following_url":"https://api.github.com/users/tangplin/following{/other_user}","gists_url":"https://api.github.com/users/tangplin/gists{/gist_id}","starred_url":"https://api.github.com/users/tangplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangplin/subscriptions","organizations_url":"https://api.github.com/users/tangplin/orgs","repos_url":"https://api.github.com/users/tangplin/repos","events_url":"https://api.github.com/users/tangplin/events{/privacy}","received_events_url":"https://api.github.com/users/tangplin/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T17:04:50Z","updated_at":"2015-07-28T17:04:50Z","body":"@duci9y you can try ```json[\"code\"].intValue```"}}