{"action":"opened","issue":{"url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/37","labels_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/37/comments","events_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/37/events","html_url":"https://github.com/RedTurtle/eve-sqlalchemy/issues/37","id":72835820,"number":37,"title":"Error: datetime.timedelta is not JSON-serializable","user":{"login":"wil93","id":1285361,"avatar_url":"https://avatars.githubusercontent.com/u/1285361?v=3","gravatar_id":"","url":"https://api.github.com/users/wil93","html_url":"https://github.com/wil93","followers_url":"https://api.github.com/users/wil93/followers","following_url":"https://api.github.com/users/wil93/following{/other_user}","gists_url":"https://api.github.com/users/wil93/gists{/gist_id}","starred_url":"https://api.github.com/users/wil93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wil93/subscriptions","organizations_url":"https://api.github.com/users/wil93/orgs","repos_url":"https://api.github.com/users/wil93/repos","events_url":"https://api.github.com/users/wil93/events{/privacy}","received_events_url":"https://api.github.com/users/wil93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-03T17:21:49Z","updated_at":"2015-05-03T17:21:49Z","closed_at":null,"body":"Hi, I just started using eve-sqlalchemy but I get an error when trying to access to an object which has a timedelta field like this:\r\n\r\n    ...\r\n    token_gen_interval = Column(\r\n        Interval,\r\n        CheckConstraint(\"token_gen_interval > '0 seconds'\"),\r\n        nullable=False,\r\n        default=timedelta(minutes=30))\r\n    ...\r\n\r\nThe error I get is:\r\n\r\n    TypeError: datetime.timedelta(0, 1800) is not JSON serializable"}}