cancel
Showing results for 
Search instead for 
Did you mean: 
0

Make webhook expected payload be a single json object { } and not an array [{ }]

Looking at other applications that provide a webhook url the payload expected is a single json object { "key": value } and not an array of json objects [ {"key1":value1} ] or [ {"key1":value1}, {"key2":value2} ].

 

your feedback would be greatly appreciated! 🙂

Status: Delivered

Hi @eduardohm123 

 

Square bracket is qualified identification in JSON and it’s used to identify array which is a data type in JSON. If a url is expected to use an array as the payload, it means it’s the desired values used to run this request.

 

If you still have problems on it, please let me know which Power BI URL you are using. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

Comments
eduardohm123
New Member

for more context, I believe this isn't the correct json object. It shouldn't have the [ ] (square brackets)

edhmartin123_0-1643408816303.png

 

v-cazheng-msft
Community Support
Status changed to: Delivered

Hi @eduardohm123 

 

Square bracket is qualified identification in JSON and it’s used to identify array which is a data type in JSON. If a url is expected to use an array as the payload, it means it’s the desired values used to run this request.

 

If you still have problems on it, please let me know which Power BI URL you are using. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

eduardohm123
New Member

I understand that but what if the application doesn't send the json object as an array [ ] and as a single json objec { }. 

Looking at GitHub and other commonly used applications, they do not send the json object as part of an array. 

 

I'm using the URL provided from PowerBI when you create a 'New streaming dataset'. I guess my question is, is there a way to make PowerBI expect a single object { } and not an array of json objects.

 

eduardohm123_0-1643640203247.png