Send appropriate json message