Serialize to JSON in .NET 2.0

c#, json

Solution

You can use the JavaScriptSerializer class from ASP.NET Ajax 1.0, which is compatible with .NET 2.0.

Problem

how can you serialize an object to JSON in .NET 2.0 using C#?

Original source