views:

944

answers:

2

I was wondering if anyone has run any benchmark tests on the JSON() function in Asp.net MVC and how it compares to JSON.NET? Also which one outputs the best json strings?

+1  A: 

i am using the MVC json and it is a very good choice. i used json.net in the past it was good but there is overhead because of the 3 party DLL asp.net 3 + is doing great with json.

give it a try ..

Moran
+6  A: 

There is a performance comparison here. ASP.NET MVC uses the JavaScriptSerializer.

Json.NET gives you more control over outputting JSON (especially around dates) and also has the option for printing indented JSON.

James Newton-King