JSON Serialization of a DataReader(west-wind.com)
submitted by
rstrahl(7226) 2 years, 9 months ago
On a few occasions recently I've ended up with DataReaders in my AJAX services. The data comes from low level componets with data from APIs over which I have no control and it feeds only feeds data from DataReaders. Rather than converting these readers into more complex data structures it can be more efficient to directly turn these DataReaders into JSON. Here are a couple of ways to do this using a custom serializer and a JavaScriptConverter for JavaScriptSerializer.
|category: ASP.NET
|Views: 454
tags:
ASP.NET another
Everyones tags:
Your Tags: