Made sendMessage only take json