{"action":"created","issue":{"url":"https://api.github.com/repos/eredo/dartson/issues/27","labels_url":"https://api.github.com/repos/eredo/dartson/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/eredo/dartson/issues/27/comments","events_url":"https://api.github.com/repos/eredo/dartson/issues/27/events","html_url":"https://github.com/eredo/dartson/issues/27","id":100480657,"number":27,"title":"Using double in num properties causing Stack Overflow","user":{"login":"eredo","id":1856202,"avatar_url":"https://avatars.githubusercontent.com/u/1856202?v=3","gravatar_id":"","url":"https://api.github.com/users/eredo","html_url":"https://github.com/eredo","followers_url":"https://api.github.com/users/eredo/followers","following_url":"https://api.github.com/users/eredo/following{/other_user}","gists_url":"https://api.github.com/users/eredo/gists{/gist_id}","starred_url":"https://api.github.com/users/eredo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eredo/subscriptions","organizations_url":"https://api.github.com/users/eredo/orgs","repos_url":"https://api.github.com/users/eredo/repos","events_url":"https://api.github.com/users/eredo/events{/privacy}","received_events_url":"https://api.github.com/users/eredo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eredo/dartson/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eredo/dartson/labels/confirmed","name":"confirmed","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-12T07:00:18Z","updated_at":"2015-11-01T21:07:54Z","closed_at":null,"body":"As mentioned in #26, the following code will fail:\r\n\r\n```dart\r\nimport 'package:dartson/dartson.dart';\r\n\r\n@Entity\r\nclass Example {\r\n  num takeDouble;\r\n}\r\n\r\nvoid main() {\r\n  var dson = new Dartson.JSON();\r\n  var jsonStr = dson.encode(new Example()..takeDouble = 1.11);\r\n\r\n  // this will work\r\n  var jsonStr2 = dson.encode(new Example()..takeDouble = 1);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/eredo/dartson/issues/comments/152864103","html_url":"https://github.com/eredo/dartson/issues/27#issuecomment-152864103","issue_url":"https://api.github.com/repos/eredo/dartson/issues/27","id":152864103,"user":{"login":"rightisleft","id":3611930,"avatar_url":"https://avatars.githubusercontent.com/u/3611930?v=3","gravatar_id":"","url":"https://api.github.com/users/rightisleft","html_url":"https://github.com/rightisleft","followers_url":"https://api.github.com/users/rightisleft/followers","following_url":"https://api.github.com/users/rightisleft/following{/other_user}","gists_url":"https://api.github.com/users/rightisleft/gists{/gist_id}","starred_url":"https://api.github.com/users/rightisleft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightisleft/subscriptions","organizations_url":"https://api.github.com/users/rightisleft/orgs","repos_url":"https://api.github.com/users/rightisleft/repos","events_url":"https://api.github.com/users/rightisleft/events{/privacy}","received_events_url":"https://api.github.com/users/rightisleft/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T21:07:54Z","updated_at":"2015-11-01T21:07:54Z","body":"I also just pulled down HEAD and it seems like the unit tests are not passing:\r\n\r\n00:00 +11 -1: parse: parser simple\r\n  Cannot instantiate abstract class double: _url 'null' line null\r\n  dart:mirrors                  _LocalClassMirror.newInstance\r\n  lib/dartson.dart 320:25       Dartson._initiateClass\r\n  lib/dartson.dart 227:17       Dartson._convertValue\r\n  lib/dartson.dart 189:15       Dartson._fillObject.<fn>\r\n  dart:collection               MapView.forEach\r\n  lib/dartson.dart 160:30       Dartson._fillObject\r\n  lib/dartson.dart 62:7         Dartson.map\r\n  lib/dartson.dart 85:12        Dartson.decode\r\n  test/dartson_test.dart 87:28  main.<fn>\r\n"}}