{"action":"created","issue":{"url":"https://api.github.com/repos/delight-im/Android-DDP/issues/129","repository_url":"https://api.github.com/repos/delight-im/Android-DDP","labels_url":"https://api.github.com/repos/delight-im/Android-DDP/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/delight-im/Android-DDP/issues/129/comments","events_url":"https://api.github.com/repos/delight-im/Android-DDP/issues/129/events","html_url":"https://github.com/delight-im/Android-DDP/issues/129","id":208431691,"number":129,"title":"Json result containing null value are converted to {\"$InfNaN\":0}","user":{"login":"Liryna","id":4311419,"avatar_url":"https://avatars.githubusercontent.com/u/4311419?v=3","gravatar_id":"","url":"https://api.github.com/users/Liryna","html_url":"https://github.com/Liryna","followers_url":"https://api.github.com/users/Liryna/followers","following_url":"https://api.github.com/users/Liryna/following{/other_user}","gists_url":"https://api.github.com/users/Liryna/gists{/gist_id}","starred_url":"https://api.github.com/users/Liryna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liryna/subscriptions","organizations_url":"https://api.github.com/users/Liryna/orgs","repos_url":"https://api.github.com/users/Liryna/repos","events_url":"https://api.github.com/users/Liryna/events{/privacy}","received_events_url":"https://api.github.com/users/Liryna/received_events","type":"User","site_admin":false},"labels":[{"id":146233843,"url":"https://api.github.com/repos/delight-im/Android-DDP/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-17T12:45:27Z","updated_at":"2017-02-20T16:08:17Z","closed_at":null,"body":"Hi,\r\n\r\nWhen calling myMethod, the string result onSuccess seems to replace all `null` value by ` {\"$InfNaN\":0}`\r\n>mMeteor.call(\"myMethod\", new Object[] { arg1, arg2 }, new ResultListener() { });\r\n\r\nMeteor function output just before return:\r\n`\r\n{\r\n\"key\": null\r\n} \r\n`\r\nAndroid-DDP result string onSuccess\r\n`\r\n{\r\n\"key\":{\"$InfNaN\":0}\r\n}\r\n`\r\nI don't know if this is normal or should I probably convert it in a way to get my null value ?\r\n\r\nThanks again for the work :heart: "},"comment":{"url":"https://api.github.com/repos/delight-im/Android-DDP/issues/comments/281118369","html_url":"https://github.com/delight-im/Android-DDP/issues/129#issuecomment-281118369","issue_url":"https://api.github.com/repos/delight-im/Android-DDP/issues/129","id":281118369,"user":{"login":"ocram","id":1681478,"avatar_url":"https://avatars.githubusercontent.com/u/1681478?v=3","gravatar_id":"","url":"https://api.github.com/users/ocram","html_url":"https://github.com/ocram","followers_url":"https://api.github.com/users/ocram/followers","following_url":"https://api.github.com/users/ocram/following{/other_user}","gists_url":"https://api.github.com/users/ocram/gists{/gist_id}","starred_url":"https://api.github.com/users/ocram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocram/subscriptions","organizations_url":"https://api.github.com/users/ocram/orgs","repos_url":"https://api.github.com/users/ocram/repos","events_url":"https://api.github.com/users/ocram/events{/privacy}","received_events_url":"https://api.github.com/users/ocram/received_events","type":"User","site_admin":false},"created_at":"2017-02-20T16:08:17Z","updated_at":"2017-02-20T16:08:17Z","body":"@Liryna That sounds good!\r\n\r\nIn order to debug this, you could (temporarily) just return `{ \"key\": null }` or even `null` directly. If you had a method that just returned that, without any further code, it would be easier to debug.\r\n\r\nI can definitely confirm that I've seen several implementations where `null` is correctly returned as `null`."}}
{"actor":{"display_login":"ocram"}}