Added a different struct for json messages