Replaced JSON parsing error with a simple one

In order to not give unnecessary information to a potential attacker.
Issue #691.
Merge pull request #694 from meshuamam/meshuamam/jsonparsingerror

Replaced JSON parsing error with a simple one