Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find System.Runtime.Serialization.Json in MonoTouch

I am a beginner in Monotouch.
I would like to deserialize Json data using DataContractJsonSerializer. But I cannot reference System.Runtime.Serialization.Json(Only .Formatters under System.Runtime.Serialization) in MonoDevelop. I have referenced System.Runtime.Serialization. My config and installation sequences are: 1. iPhone SDK 4.2 2. Mono 2.8.2 (not CSDK version) 3. Monotouch 3.2.4 Eval 4. MonoDevelop 2.4

What is the problem?

like image 393
NewComer Avatar asked Feb 09 '11 05:02

NewComer


1 Answers

MonoTouch does not ship with a DataContractJSonSerializer as simple as this serializer looks, it brings in a large set of libraries.

You can use either the System.Json API or you can try NewtonSoft's JSon library.

like image 184
miguel.de.icaza Avatar answered Sep 27 '22 01:09

miguel.de.icaza