Rework of JSON chat messages