[Service] Check if the response is valid json (Fixes #24)
Merge pull request #25 from widop/f-html-response

[Service] Check if the response is valid json