Azure 函数输入的格式化困难 JSON

Difficulties formatting JSON for Azure function input

我需要将下面的 JSON 发送到 Azure 函数以处理 XMLA 查询。 我如何修复下面的 JSON 以便将 JSON 发送到 Azure 函数?

{"WorkspaceId": "workspaceid", "DatasetId": "datasetid", 
  
"XMLA_String": "{
  "refresh": {
    "type": "full",
    "objects": [
      {
        "database": "datamodel",
        "table": "datatable"
      }
    ]
  }
}"}

试试这个...

{
  "WorkspaceId": "workspaceid",
  "DatasetId": "datasetid",
  "XMLA_String": "{\"refresh\": {\"type\": \"full\", \"objects\": [{ \"database\": \"datamodel\", \"table\": \"datatable\" }]}}"
}