How do I return JSON from an Azure Function

前端 未结 7 1405
逝去的感伤
逝去的感伤 2021-02-06 20:43

I am playing with Azure Functions. However, I feel like I\'m stumped on something pretty simple. I\'m trying to figure out how to return some basic JSON. I\'m not sure how to cr

7条回答
  •  无人共我
    2021-02-06 21:27

    You can change the method signature into:

    public static async Task Run(HttpRequestMessage req, TraceWriter log)
    
    
    

    and it will allow JSON data to be returned.

    提交回复
    热议问题