Start on json encoding for room message event hook