{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/1763","labels_url":"https://api.github.com/repos/manastech/crystal/issues/1763/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1763/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/1763/events","html_url":"https://github.com/manastech/crystal/issues/1763","id":111988192,"number":1763,"title":"json mapping serialize","user":{"login":"kostya","id":95060,"avatar_url":"https://avatars.githubusercontent.com/u/95060?v=3","gravatar_id":"","url":"https://api.github.com/users/kostya","html_url":"https://github.com/kostya","followers_url":"https://api.github.com/users/kostya/followers","following_url":"https://api.github.com/users/kostya/following{/other_user}","gists_url":"https://api.github.com/users/kostya/gists{/gist_id}","starred_url":"https://api.github.com/users/kostya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostya/subscriptions","organizations_url":"https://api.github.com/users/kostya/orgs","repos_url":"https://api.github.com/users/kostya/repos","events_url":"https://api.github.com/users/kostya/events{/privacy}","received_events_url":"https://api.github.com/users/kostya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/manastech/crystal/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/manastech/crystal/labels/standard%20library","name":"standard library","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-17T22:28:56Z","updated_at":"2015-10-28T17:11:34Z","closed_at":null,"body":"How to do something like this?:\r\n\r\n```ruby\r\nrequire \"json\"\r\n\r\nclass A\r\n  JSON.mapping({\r\n    a: Int32,\r\n    b: String,\r\n    c: Time\r\n  })\r\nend\r\n\r\na = A.new\r\na.a = 1\r\na.b = \"bla\"\r\na.c = Time.now\r\np a.to_json\r\n```"},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/151913083","html_url":"https://github.com/manastech/crystal/issues/1763#issuecomment-151913083","issue_url":"https://api.github.com/repos/manastech/crystal/issues/1763","id":151913083,"user":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T17:11:34Z","updated_at":"2015-10-28T17:11:34Z","body":"@kostya Is there something else needed for this issue?"}}