AspNetFrameworksPerformance.Handler.JsonRequest C# (CSharp) 메소드

JsonRequest() 공개 메소드

public JsonRequest ( HttpContext context ) : void
context System.Web.HttpContext
리턴 void
        public void JsonRequest(HttpContext context)
        {
            var json = JsonConvert.SerializeObject(new Person(), Formatting.None);
            context.Response.ContentType = "application/json";
            context.Response.Write(json);
        }