Search code examples
jsonxamarinsystem.web

Importing System.Web.Script.Serialization in Xamarin


I wanted to use JavaScriptSerializer.Deserialize to convert a JSON array string to a list of objects. But this class uses the the System.Web.Script.Serialization in Xamarin namespace. So I wanted to import the System.Web assembly in my project to use the namespace, but System.Web or any similar assembly does not exist in the packages.
I found out that I can use JSON.Net to solve this issue.
But I still have the question: Is there a way to import the System.Web


Solution

  • No, you cannot import System.Web straight like that as far as I know. I'm using ServiceStack, they claim to be the fastest.