Fixes bug where non-json string will cause a crash
Merge pull request #1 from garrows/patch-1

Fixes bug where non-json string will cause a crash