Dan Rigsby - Coding Up Style

.Net, C#, & Wcf Development

JavaScriptSerializer Undeprecated in .NET 3.5 SP1

Posted by Dan Rigsby on May 28th, 2008

According to Scott Guthrie (see comments in this post) it appears that the JavaScriptSerializer will be undeprecated in .NET 3.5 SP1.  In was deprecated in .Net 3.5 and the DataContractJsonSerializer replaced it.  Each of these serializers serializes to Json and each have their pluses and minuses:

  • JavaScriptSerializer supports anonymous types.
  • JavaScriptSerializer works with plain strings so it can be easier to use.
  • DataContractJsonSerializer can serialize DateTimes into UTC format.   Very important over the web!

I guess the big question I have is, do we really need both? Isn’t there a way to combine these into one serializer?

What about the act of undeprecating a class?  Do you think this is a good thing?

See these links for more information about the DataContractJsonSerializer:

3 Responses to “JavaScriptSerializer Undeprecated in .NET 3.5 SP1”

  1. Mads Says:

    I think its better to admit a mistake and do something about it, than doing the opposite :)

  2. me Says:

    I for one am thankful they are going to undeprecate this one.. I don’t want nor require to make a fully typed class.. it was just extra work in my case

  3. JSON Serializer "Undeprecated" in .NET 3.5 SP1 « Nelson’s Development Blog Says:

    [...] August 17, 2008 by Nelson Montalvo Check it out. [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>