Take a look at these code snippets:
There are converter classes for the Newtonsoft JSON serializer and for the JavaScriptSerializer from .NET