创建将JSON输出到单行的blob(Azure逻辑应用程序)

创建将JSON输出到单行的blob(Azure逻辑应用程序),json,azure,blob,azure-logic-apps,azure-blob-storage,Json,Azure,Blob,Azure Logic Apps,Azure Blob Storage,我的createblob函数将整个blob内容输出到一行,而不是标准的JSON格式 原始输入: [ { "AadTenantId_g": "", "ActionIdBefore_g": "", "ActionId_g": "", "ActionSource_s": "", "Activ

我的createblob函数将整个blob内容输出到一行,而不是标准的JSON格式

原始输入:

[
  {
    "AadTenantId_g": "",
    "ActionIdBefore_g": "",
    "ActionId_g": "",
    "ActionSource_s": "",
    "Activity_s": "",
    "ApplicationId_g": "",
    "ApplicationId_s": "",
    "ApplicationName_s": "",
    "Computer": "",
    "ContentIdBefore_g": "",
    "ContentId_g": "",
    "DataState_s": "",
    "DeviceId_g": "",
    "DeviceId_s": "",
    "DiscoveredInformationTypes_s": "",
    "IPv4_s": "",
    "InformationTypesAbove55_s": "",
    "InformationTypesAbove65_s": "",
    "InformationTypesAbove75_s": "",
    "InformationTypesAbove85_s": "",
    "InformationTypesAbove95_s": "",
    "InformationTypes_s": "",
    "IsLabelChanged_b": null,
    "IsProtectionChanged_b": null,
    "LabelIdBeforeAction_g": "",
    "LabelId_g": "",
    "LabelNameBefore_s": "",
    "LabelName_s": "",
    "LastModifiedBy_s": "",
    "LastModifiedDate_t": null,
    "Location_s": "",
    "LogId_g": "",
    "MG": "",
    "MachineName_s": "",
    "ManagementGroupName": "",
    "ObjectId_s": "",
    "Operation_s": "",
    "ParentLabelNameBefore_s": "",
    "ParentLabelName_s": "",
    "Platform_s": "",
    "ProcessName_g": "",
    "ProcessName_s": "",
    "ProcessVersion_s": "",
    "ProductVersion_s": "",
    "ProtectedBeforeAction_b": null,
    "Protected_b": false,
    "ProtectionOwnerBefore_s": "",
    "ProtectionOwner_s": "",
    "ProtectionTime_t": null,
    "ProtectionTypeBefore_s": "",
    "ProtectionType_s": "",
    "RawData": "",
    "RecommendedLabelId_g": "",
    "RecommendedLabelName_s": "",
    "ResultStatus": "",
    "ResultStatus_s": "",
    "SensitivityChange_s": "",
    "SourceSystem": "",
    "TemplateIdBefore_g": "",
    "TemplateId_g": "",
    "TenantId": "",
    "TimeGenerated": "",
    "Type": "",
    "UserId_s": "",
    "UserJustification_s": "",
    "Version_s": "",
    "Workload_s": "",
    "_ResourceId": "",
    "dynamicInformationTypes_s": null
  }
]
输出:

[{"AadTenantId_g":"","ActionIdBefore_g":"","ActionId_g":"","ActionSource_s":"","Activity_s":"","ApplicationId_g":"","ApplicationId_s":"","ApplicationName_s":"","Computer":"","ContentIdBefore_g":"","ContentId_g":"","DataState_s":"","DeviceId_g":"","DeviceId_s":"","DiscoveredInformationTypes_s":"","IPv4_s":"","InformationTypesAbove55_s":"","InformationTypesAbove65_s":"","InformationTypesAbove75_s":"","InformationTypesAbove85_s":"","InformationTypesAbove95_s":"","InformationTypes_s":"","IsLabelChanged_b":null,"IsProtectionChanged_b":null,"LabelIdBeforeAction_g":"","LabelId_g":"","LabelNameBefore_s":"","LabelName_s":"","LastModifiedBy_s":"","LastModifiedDate_t":null,"Location_s":"","LogId_g":"","MG":"","MachineName_s":"","ManagementGroupName":"","ObjectId_s":"","Operation_s":"","ParentLabelNameBefore_s":"","ParentLabelName_s":"","Platform_s":"","ProcessName_g":"","ProcessName_s":"","ProcessVersion_s":"","ProductVersion_s":"","ProtectedBeforeAction_b":null,"Protected_b":false,"ProtectionOwnerBefore_s":"","ProtectionOwner_s":"","ProtectionTime_t":null,"ProtectionTypeBefore_s":"","ProtectionType_s":"","RawData":"","RecommendedLabelId_g":"","RecommendedLabelName_s":"","ResultStatus":"","ResultStatus_s":"","SensitivityChange_s":"","SourceSystem":"","TemplateIdBefore_g":"","TemplateId_g":"","TenantId":"","TimeGenerated":"","Type":"","UserId_s":"","UserJustification_s":"","Version_s":"","Workload_s":"","_ResourceId":"","dynamicInformationTypes_s":null}]
我认为主体的媒体类型是个问题,因为MediaType=application/octet-stream

本期仅限于创建blob阶段

非常感谢您的帮助。

您可以“手动”在“创建blob”连接器的定义中添加这样一行

"headers": {
"content-type": "application/json"
}

我已经设置好这个标题了。你明白为什么blob会将JSON格式化为一行吗?