{"action":"created","issue":{"url":"https://api.github.com/repos/pokitdok/pokitdok-python/issues/8","labels_url":"https://api.github.com/repos/pokitdok/pokitdok-python/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/pokitdok/pokitdok-python/issues/8/comments","events_url":"https://api.github.com/repos/pokitdok/pokitdok-python/issues/8/events","html_url":"https://github.com/pokitdok/pokitdok-python/issues/8","id":121163982,"number":8,"title":"Error while parsing cancellation result","user":{"login":"arpit-goel","id":5030017,"avatar_url":"https://avatars.githubusercontent.com/u/5030017?v=3","gravatar_id":"","url":"https://api.github.com/users/arpit-goel","html_url":"https://github.com/arpit-goel","followers_url":"https://api.github.com/users/arpit-goel/followers","following_url":"https://api.github.com/users/arpit-goel/following{/other_user}","gists_url":"https://api.github.com/users/arpit-goel/gists{/gist_id}","starred_url":"https://api.github.com/users/arpit-goel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arpit-goel/subscriptions","organizations_url":"https://api.github.com/users/arpit-goel/orgs","repos_url":"https://api.github.com/users/arpit-goel/repos","events_url":"https://api.github.com/users/arpit-goel/events{/privacy}","received_events_url":"https://api.github.com/users/arpit-goel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-09T05:29:30Z","updated_at":"2015-12-16T07:46:09Z","closed_at":null,"body":"While cancelling a scheduled appointment, the package parses the response returned from PokitDok using Response class json method, can be seen [here](https://github.com/pokitdok/pokitdok-python/blob/master/pokitdok/api/client.py#L411). But the Cancellation API doesn't return any data on successful cancellation, just 204 response. When the package tries to parse the response, it raises an error saying that the **ValueError: No JSON object could be decoded**.\r\nThis should be conditionally parsed, i.e., if response is not 204 and has some content then only parse it as json."},"comment":{"url":"https://api.github.com/repos/pokitdok/pokitdok-python/issues/comments/165024540","html_url":"https://github.com/pokitdok/pokitdok-python/issues/8#issuecomment-165024540","issue_url":"https://api.github.com/repos/pokitdok/pokitdok-python/issues/8","id":165024540,"user":{"login":"arpit-goel","id":5030017,"avatar_url":"https://avatars.githubusercontent.com/u/5030017?v=3","gravatar_id":"","url":"https://api.github.com/users/arpit-goel","html_url":"https://github.com/arpit-goel","followers_url":"https://api.github.com/users/arpit-goel/followers","following_url":"https://api.github.com/users/arpit-goel/following{/other_user}","gists_url":"https://api.github.com/users/arpit-goel/gists{/gist_id}","starred_url":"https://api.github.com/users/arpit-goel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arpit-goel/subscriptions","organizations_url":"https://api.github.com/users/arpit-goel/orgs","repos_url":"https://api.github.com/users/arpit-goel/repos","events_url":"https://api.github.com/users/arpit-goel/events{/privacy}","received_events_url":"https://api.github.com/users/arpit-goel/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T07:46:09Z","updated_at":"2015-12-16T07:46:09Z","body":"@ghadishayban Thanks for the quick fix. Works like a charm."}}