Add suppoort to transfer messages as JSON.