I need to send the JSON response from GenericJsonWebHookReceiver provided by Nuget package in ASP.NET. I am trying to send the JSON value in the return call like this - "return Task.FromResult(sampleJson);" , where sampleJson is a valid JSON in string format. But while testing, I am still getting empty response.
How can we send the JSON response with GenericJsonWebHookReceiver? Also how to set the proper header type in the response to define it as JSON type response?
Thanks, /vikas