JSON Serialization of a DataReader(west-wind.com)

submitted by rstrahlrstrahl(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.

add a comment |category: |Views: 454

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story