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
You can take req from
req
public static async Task Run(HttpRequestMessage req, TraceWriter log)
and create the response using
return req.CreateResponse(HttpStatusCode.OK, json, "application/json");
or any of the other overloads in assembly System.Web.Http.
System.Web.Http
More info on docs.microsoft.com