{"action":"closed","issue":{"url":"https://api.github.com/repos/isabo/FireTaskQueue/issues/7","labels_url":"https://api.github.com/repos/isabo/FireTaskQueue/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/isabo/FireTaskQueue/issues/7/comments","events_url":"https://api.github.com/repos/isabo/FireTaskQueue/issues/7/events","html_url":"https://github.com/isabo/FireTaskQueue/issues/7","id":119649631,"number":7,"title":"Store the most recent error that causes a task to be rescheduled","user":{"login":"isabo","id":70673,"avatar_url":"https://avatars.githubusercontent.com/u/70673?v=3","gravatar_id":"","url":"https://api.github.com/users/isabo","html_url":"https://github.com/isabo","followers_url":"https://api.github.com/users/isabo/followers","following_url":"https://api.github.com/users/isabo/following{/other_user}","gists_url":"https://api.github.com/users/isabo/gists{/gist_id}","starred_url":"https://api.github.com/users/isabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isabo/subscriptions","organizations_url":"https://api.github.com/users/isabo/orgs","repos_url":"https://api.github.com/users/isabo/repos","events_url":"https://api.github.com/users/isabo/events{/privacy}","received_events_url":"https://api.github.com/users/isabo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/isabo/FireTaskQueue/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-01T06:09:40Z","updated_at":"2015-12-06T09:26:19Z","closed_at":"2015-12-06T09:26:19Z","body":"How do we make sure it is Firebase compatible?\r\n\r\nIs a primitive (not Object) ==> OK\r\n\r\ntypeof value === 'object':\r\n- has a toJson() method ==> value.toJson()\r\n- ~~try JSON.stringify(): if it succeeds, assume the object contains only primitives~~\r\n- otherwise: value.toString()\r\n\r\n.. or maybe submitting it to Firebase will cause an immediate error if it is not suitable, i.e. not asynch.\r\n\r\n"}}