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
The easiest way is perhaps to
public static async Task Run( [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "/jsontestapi")] HttpRequest req, ILogger log) { return new JsonResult(resultObject); }
Will set the content-type to application/json and return the json in the response body.
application/json