Update VAR.Json and usage.

This commit is contained in:
2021-06-13 12:24:12 +02:00
parent 4deae439af
commit 98e0685560
9 changed files with 17 additions and 23 deletions

View File

@@ -22,9 +22,8 @@ namespace VAR.WebForms.Common.Code
public static void ResponseObject(this HttpContext context, object obj)
{
var jsonWritter = new JsonWriter();
context.Response.ContentType = "text/json";
string strObject = jsonWritter.Write(obj);
string strObject = JsonWriter.WriteObject(obj);
context.Response.Write(strObject);
}