dortzur dortzur - 1 year ago 127
JSON Question vs DataContractJsonSerializer

I know there's a DataContractJsonSerializer that comes now with the .net framework and is used by wcf ajax enabled services. However, I've noticed there's also a project over at codeplex.
I'm wondering if there are any advantages or features that are present in the codeplex project that are missing from the .net framework.

Answer Source has next pros:

  • Control over how dates get formatting (the \/Date(123)\/ MS AJAX style)
  • The ability to serialize object graphs that contain cycles (by telling Json.NET to ignore them)

There are a lot of explanation how its reflects on WCF developing here.

Also, regarding to it has better performance, but this results can be argued.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download