Only detect real JSON parsing errors
Merge pull request #587 from idio/json-error-catching

Only detect real JSON parsing errors