Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is faster asp.net mvc json or json.net? [closed]

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?

like image 808
Donny V. Avatar asked Feb 04 '09 00:02

Donny V.


3 Answers

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.

like image 140
James Newton-King Avatar answered Oct 10 '22 21:10

James Newton-King


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 ..

like image 25
Moran Helman Avatar answered Oct 10 '22 22:10

Moran Helman


An author of the ServerStack framework introduced a new JSON serializer for .NET and Mono, and their benchmarks quote higher performance than JSON.NET and WCF JSON Serializer. At first glance it doesn't support a couple of important features from JSON.NET: indented serialized text, and it looks like it requires more code.

like image 1
yzorg Avatar answered Oct 10 '22 21:10

yzorg