BT

Your opinion matters! Please fill in the InfoQ Survey!

ASP.NET Web API Now Uses Json.NET, Gets Several Enhancements

| by Roopesh Shenoy Follow 0 Followers on Jun 05, 2012. Estimated reading time: less than one minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

ASP.NET Web API Release Candidate gets several enhancements such as Json.NET as the default serializer, better testability of Http Message handlers, the IAPIExplorer API and more.

Notably, Json.NET now becomes the default serializer for Web API which means we don’t need to swap the default implementation any more – for instance, to be able to work with dates (Json.NET 4.5 uses the ISO 8601 date format by default). As a result, the redundant System.Json.dll has been removed. As Microsoft puts it -

Json.NET provides the flexibility and performance required for a modern web framework.

HttpClient now derives from a new HttpMessageInvoker and the latter can be used for unit testing Http Message handlers, rather than using former directly which are heavier. Also the IAPIExplorer API has now been included into the release bits. The complete list of changes are included in the release notes.

ASP.NET Web API is a WCF-alternative from Microsoft for building RESTful web services. The RC was released with the other ASP.NET web stack components such as ASP.NET web pages 2 and ASP.NET MVC 4

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT