The super obvious way is to add reference to System.web
I did that. It doesn't work.
Add a reference to System.Web.Extensions
http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx
Namespace: System.Web.Script.Serialization
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
How to add System.Web.Extensions in Visual Studio 2012:
Imports System.Web.Script.Serialization
at the top of your file (or, for C# using System.Web.Script.Serialization;
)I just had to figure this out, and it took me way longer than it should have to find the answer, so maybe that will help someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With