Wrapped JSON.parse() around a try, catch block.
Merge pull request #1 from bpedro/master

Fixed crash when response body couldn't be parsed by JSON