Enable JSON serialization in your Visual Studio 2010 project

As far as I know, the project templates shipped with Visual Studio 2010 do not support JSON serialization out of the box. An additional library should be referenced by the project in order for the JSON serialization to be enabled. To add it, right-click on the References section, select Add Reference, go to the .NET tab and proceed to System.Runtime.Serialization:

Now you are ready to import the System.Runtime.Serialization.Json namespace to your source code!


Popular posts from this blog


jQuery | remove inline style