Better Json handling, able to get and send the adequate messages.