Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string json = "";
            Dictionary <string, object> ResponseMap = new Dictionary <string, object>();
            string raw_req = "";

            using (StreamReader reader = new StreamReader(HttpContext.Current.Request.InputStream))
            {
                raw_req = reader.ReadToEnd();
            }
            ResponseMap.Add("RequestBody", raw_req);
            json = JSONUtil.MapToJsonString(ResponseMap);
            Response.Clear();
            Response.ContentType = "application/json; charset=utf-8";
            Response.Write(json);
            Response.End();
        }