Returning a JSON stream from an ApiController
问题 I've got a large JSON Object which I need to return from an MVC ApiController. I can't simply return the JSON Object as the internal serializer barfs on the serialized contents being too long. I don't want to serialize to string and then return the string as we could be dealing 5-6MB of data and that seems like a waste of memory for no purpose. What I want to do is use the Newtonsoft JSON Serializer to write to the response stream directly. Dim Ret = Client.Search(Model) ''Get the results