Serialize datareader

Nov 15, 2011 at 12:18 PM


Please let me know if it is possible to use fastJSON with datareader without having to fill a datatable.  The reason for that is that datareader is a lot faster than dataset and datatable, and we just want to convert the records in the datareader to JSON.



Jan 19, 2012 at 1:42 PM

fastJSON is a serializer so you have to have the data ready for it to process it, so working with a datareader would not make sense and it would block your db connection until done, generally a bad idea.