Use JSON.NET instead of the built in JavaScript serializer.