开发者

JavaScript/JSON Serializer

I see that a JSON serializer is present in the System.Web.Script.Serialization namespace, and is shipped in the System.Web.Extensio开发者_如何转开发ns.dll assembly.

Is this assembly distributed with the .NET framework v4.0 redistributable? Is it also guaranteed to be present on a user's machine if any edition of Visual Studio 2010 is installed?

Added Later: I don't see the said DLL in the '.NET' tab in the Add Reference dialog box in Visual Studio 2010. I do see it in the \Windows\Microsoft.NET\Framework\v4.x.xx.xx folder.

When I browse to the said folder and add a reference to the DLL, it shows a yellow exclamation icon next to the reference, in the Solutions Explorer. And I can't access anything from within that assembly in my code.

I am, however, able to view the contents of the DLL in Reflector.


It's part of the .NET Framework 3.5 and 4.0, so yes.

However it is not included in the .NET Framework Client Profile. If you are using the Client Profile, you may want to look at the System.Runtime.Serialization.Json.DataContractJsonSerializer class instead.

Related Resources:

  • JavaScriptSerializer Class
  • DataContractJsonSerializer Class
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜