shaping channel with json messages