{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/208","repository_url":"https://api.github.com/repos/ruby-grape/grape-entity","labels_url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/208/comments","events_url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/208/events","html_url":"https://github.com/ruby-grape/grape-entity/issues/208","id":132382310,"number":208,"title":"BigDecimal data fields are presented as strings","user":{"login":"IlyaBeliaev","id":1251896,"avatar_url":"https://avatars.githubusercontent.com/u/1251896?v=3","gravatar_id":"","url":"https://api.github.com/users/IlyaBeliaev","html_url":"https://github.com/IlyaBeliaev","followers_url":"https://api.github.com/users/IlyaBeliaev/followers","following_url":"https://api.github.com/users/IlyaBeliaev/following{/other_user}","gists_url":"https://api.github.com/users/IlyaBeliaev/gists{/gist_id}","starred_url":"https://api.github.com/users/IlyaBeliaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlyaBeliaev/subscriptions","organizations_url":"https://api.github.com/users/IlyaBeliaev/orgs","repos_url":"https://api.github.com/users/IlyaBeliaev/repos","events_url":"https://api.github.com/users/IlyaBeliaev/events{/privacy}","received_events_url":"https://api.github.com/users/IlyaBeliaev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ruby-grape/grape-entity/labels/bug?","name":"bug?","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-02-09T10:27:02Z","updated_at":"2016-09-26T14:35:02Z","closed_at":null,"body":"Hello.\r\n\r\nWhen I pass an ActiveRecord model with BigDecimal fields into present(…,with: GrapeEntity) method it generates json with strings instead of numbers.\r\n\r\nFor example, if the model contains a “cost” field which is BigDecimal type, the generated json looks like:\r\n\r\n```\r\n{\r\n  cost: \"123.50\"\r\n}\r\n```\r\n\r\nThis looks wrong to me. Is this its right behaviour?"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/comments/249587906","html_url":"https://github.com/ruby-grape/grape-entity/issues/208#issuecomment-249587906","issue_url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/208","id":249587906,"user":{"login":"chlebta","id":1204608,"avatar_url":"https://avatars.githubusercontent.com/u/1204608?v=3","gravatar_id":"","url":"https://api.github.com/users/chlebta","html_url":"https://github.com/chlebta","followers_url":"https://api.github.com/users/chlebta/followers","following_url":"https://api.github.com/users/chlebta/following{/other_user}","gists_url":"https://api.github.com/users/chlebta/gists{/gist_id}","starred_url":"https://api.github.com/users/chlebta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chlebta/subscriptions","organizations_url":"https://api.github.com/users/chlebta/orgs","repos_url":"https://api.github.com/users/chlebta/repos","events_url":"https://api.github.com/users/chlebta/events{/privacy}","received_events_url":"https://api.github.com/users/chlebta/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T14:35:02Z","updated_at":"2016-09-26T14:35:02Z","body":"Got same issue decimals are exposed as strings"}}
{"actor":{"display_login":"chlebta"}}