Tuesday, August 20, 2013

Faster JSON serialization with ServiceStack.Text

I've been using JSON.Net to serialize objects to and from JSON for years.

However, ever since I heard that ServiceStack had a faster JSON serializer I've wanted to try it.
After all, speed is important, especially on a mobile devices, and if I can make my code run faster by just swapping out one third party library for another then that's a simple decision.

Today I finally got around to trying it and to do so I built a console app so I could put the two methods side by side.

Look both methods are very similar. And as I rarely do anything more complicated with JSON than just serialize or deserialize this is great.

Obviously the above isn't enough for me to prove that it's faster. I'm just trusting the benchmark testing done by others.

It's also a smaller DLL so it will reduce the overall XAP size and download time. Plus app load time too. :)

My only slight reservation is that ServiceStack doesn't give me the debugging assistance I get with Json.Net. Maybe I'll look to just use Json.Net in the debug build if this becomes an issue.


  1. You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant!

  2. Thanks for the such a wonderful post and great coding. I love it very much

  3. I basically get a essential details right here and furthermore this is often really Maine I trying. because of your present posting sports authority coupons

  4. The Window Phone is focused on a couple of centers; ponsisting of pictures, individuals, music, recreations, feature, office and commercial center. You will have the capacity to get access get to your individual contacts as well as to Myspace and Facebook. Feature and music is the result of Zune's HD programming which is on the telephone hid within the Window Phone. On the off chance that you happen to be a feature diversion significant other, you will likely be pleased to realize that X-Box Live is found in that spot additionally on the telephone. You will be glad to know likewise that your scores can be snared to your X-Box that is at your home.All the day we enjoy. best research paper writing services for more info and any type of necessary detail.

  5. i really like your post, it is both informative and interesting. the topic of your blog was good too!
    Distressed Brown Leather Coat

  6. Useful information shared..Iam very happy to read this article..thanks for giving us nice info.Fantastic walk-through. I appreciate this post. Limo service atlanta

  7. What an incredibly amazing blog post this is! This is actually one of the best blog posts that I have studied within my entire life. Appreciate your efforts on this huge contribution.hemorrhoids treatment

  8. Medium length hairstyles have always been a favourite for many people. Not only because this is a safer look, but also because it compliments almost any facial shape. Medium length also has a variety of styles to choose from, but almost all are easy to manage and are complimentary to ones natural beauty.

  9. Supplements can help your dreams of having your own product come alive. Intermountain Supplements offers a wide variety of custom formulation services including liquids, capsules, sprays, powders, and more.

  10. atlanta falcons, http://www.atlantafalconsjersey.us/
    michael kors outlet online, http://www.michaelkorsusa.us/
    mbt sneakers, http://www.mbtshoesoutlet.us.com/
    dallas cowboys, http://www.dallascowboysjersey.us/
    oklahoma city thunder, http://www.thunderjerseystore.com/
    san francisco 49ers, http://www.sanfrancisco49ersjerseys.us/
    cheap uggs, http://www.uggsale.in.net/
    polo ralph lauren uk, http://www.ralphlauren-outletonline.co.uk/
    chicago bulls, http://www.chicagobullsjerseys.net/
    babyliss hair dryer, http://www.babyliss.us.com/
    supra sneakershttp://www.suprashoes.us.com
    ray ban sunglasses, http://www.ray-bansunglasses.eu.com/
    toms shoes outlet online, http://www.toms.us.com/
    snapback hats, http://www.cheapsnapbacks.us.com/
    fitflop sandals, http://www.fitflop.in.net/
    louis vuitton outlet,louis vuitton outlet online,louis vuitton,louisvuitton.com,authentic louis vuitton,louis vuitton factory outlet,cheap louis vuitton
    ralph lauren sale, http://www.ralphlaurenoutlet.in.net/
    oakley outlet online, http://www.oakleyoutlet.in.net/
    kkk10 13

  11. I'm so gladful this post.It is very helpful.Limo service atlanta