Have you tried using an “Export to JSON” action, and then returning that variable as the content of your HttpResponse in the flow that returns the message?
Thanks for your answer.
In this solution the export of the data is done twice. The first time in the microflow and the second time in the Export-definition in the PublishedWebservice. And the output is still XML.
I found a solution. I added the HttpResponse as a parameter to the microflow and added a HttpHeader to this with the Key=‘Content-Type’ and Value=’application/json’. This works. The advantage is having only one Export.
I think it would be nice/beter to have the Content-Type [XML, JSON] option in the Published Webservice.
Just what I was looking for. Thank you for posting the solution. It shouldn't be necessary to do it that way, but it works :-)