Home > Blockchain >  Difficulties formatting JSON for Azure function input
Difficulties formatting JSON for Azure function input

Time:01-23

I need so send below's JSON to an Azure function in order to process a XMLA query. How do I fix below's JSON in order to send the JSON to the Azure function?

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

CodePudding user response:

Try this ...

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