Is there a JSON serializer in the Silverlight
I reall开发者_开发问答y want this so I can serialize / deserialize some complex data objects using JSON.
It appears that JsonReaderWriterFactory
is supported in Silverlight 3: http://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.jsonreaderwriterfactory(VS.95).aspx
We have used Json.NET
It's pretty handy for serializing objects back and forth from Javascript on the client to C# on the server.
You could also use DataContractJsonSerializer (http://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.datacontractjsonserializer(v=vs.95).aspx)
精彩评论