Merge pull request #71 from uded/master

Better handling of incorrect JSON objects