Convert to msgType/content format for JSON serialization of HLExpressions