Update json_ascoltatore.js

Catch the error raised when the JSON published from the client is not valid. I've added a basic console.log to show the message, as the debug isn't be visible if the related env var is not set. In this way the services receiving wrong JSON still work.