Fixed the exception throw error for invalid json
Merge pull request #492 from sheebans/master

Fixed the exception throw  for invalid json