I have JSON object in my ASP.Net app which I pass to response using code
context.Response.Write(jsonObject)
The problem is that I need to set the Content-Length header to indicate response size and I do not know how to count it. How do I get filesize of Object?
Given that the JSON object is a string, something like
should work.