Turn JSON parse exception into meaningful error

The current JSON exception does not convey that the app or server has crashed.

The current "JSON::ParserError: A JSON text must at least contain two octets!" is misleading.