C#/.NET json serializer in client profile?
题
Is there a JSON de/serializer in .NET client profile? or is including System.Web.Extensions.dll or json.net (3rd party, its pretty solid) my only option?
I would hope there is something built into the client profile by now (2012 with .NET 4.5)
解决方案
There's no longer a client profile in .NET 4.5. So feel free to use JSON.NET. Or JavaScriptSerializer
. Or whatever.
By the way the new WebApi HttpClient uses JSON.NET so apparently Microsoft are leaning towards it.
不隶属于 StackOverflow