Help reading JSON from HttpContext.InputStream

I needed to reset the position of the stream before reading…

request.InputStream.Position = 0;
using (StreamReader inputStream = new StreamReader(request.InputStream))
{
return inputStream.ReadToEnd();
}

Leave a Comment