Messages are passed as JSON.