catch json parsing errors
Merge pull request #2 from baracoder/master

catch json parsing errors