Making messages json