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();
}
The stream can't be read as far as i know. You might write you own handler, then buffer the stream, by reading and writing to another stream.
To parse the JSON part you might try
System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject(string input);