{"action":"created","issue":{"url":"https://api.github.com/repos/cbeust/klaxon/issues/124","repository_url":"https://api.github.com/repos/cbeust/klaxon","labels_url":"https://api.github.com/repos/cbeust/klaxon/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/cbeust/klaxon/issues/124/comments","events_url":"https://api.github.com/repos/cbeust/klaxon/issues/124/events","html_url":"https://github.com/cbeust/klaxon/issues/124","id":304118869,"number":124,"title":"Float instead of Double in constructor unsupported?","user":{"login":"Archer6621","id":6449766,"avatar_url":"https://avatars2.githubusercontent.com/u/6449766?v=4","gravatar_id":"","url":"https://api.github.com/users/Archer6621","html_url":"https://github.com/Archer6621","followers_url":"https://api.github.com/users/Archer6621/followers","following_url":"https://api.github.com/users/Archer6621/following{/other_user}","gists_url":"https://api.github.com/users/Archer6621/gists{/gist_id}","starred_url":"https://api.github.com/users/Archer6621/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archer6621/subscriptions","organizations_url":"https://api.github.com/users/Archer6621/orgs","repos_url":"https://api.github.com/users/Archer6621/repos","events_url":"https://api.github.com/users/Archer6621/events{/privacy}","received_events_url":"https://api.github.com/users/Archer6621/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-11T00:38:16Z","updated_at":"2018-03-19T13:42:57Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI attempted to use Klaxon for parsing a JSON array containing objects that have floats in them. These objects correspond directly to a data class I have with those same fields of type Float. However, when trying to parse the array with Klaxon, it complains that no suitable constructor was found, even though it could find all the necessary fields and their corresponding values.\r\n\r\nAfter some headaches I discovered that using doubles instead of floats in the constructor fixed the problem, but this is not really a desirable solution, since I'm bound to using floats everywhere in my program ( a LibGDX project), meaning I would have to do type conversions all over the place. It seems that Klaxon doesn't want to initialize objects that have floats in their constructor.\r\n\r\nIs it correct that Klaxon doesn't support this? If so, will there be support for it sometime in the future? Thank you for reading!"},"comment":{"url":"https://api.github.com/repos/cbeust/klaxon/issues/comments/374215652","html_url":"https://github.com/cbeust/klaxon/issues/124#issuecomment-374215652","issue_url":"https://api.github.com/repos/cbeust/klaxon/issues/124","id":374215652,"user":{"login":"Archer6621","id":6449766,"avatar_url":"https://avatars2.githubusercontent.com/u/6449766?v=4","gravatar_id":"","url":"https://api.github.com/users/Archer6621","html_url":"https://github.com/Archer6621","followers_url":"https://api.github.com/users/Archer6621/followers","following_url":"https://api.github.com/users/Archer6621/following{/other_user}","gists_url":"https://api.github.com/users/Archer6621/gists{/gist_id}","starred_url":"https://api.github.com/users/Archer6621/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archer6621/subscriptions","organizations_url":"https://api.github.com/users/Archer6621/orgs","repos_url":"https://api.github.com/users/Archer6621/repos","events_url":"https://api.github.com/users/Archer6621/events{/privacy}","received_events_url":"https://api.github.com/users/Archer6621/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T13:42:57Z","updated_at":"2018-03-19T13:42:57Z","author_association":"NONE","body":"Thanks!"}}
{"actor":{"display_login":"Archer6621"}}