JavaScriptSerializer namespace issue

前端 未结 5 622
清酒与你
清酒与你 2021-01-17 10:46

I am having a problem trying to implement the JavaScriptSerializer to parse a JSON string received from a server.

I implemented the following code:

5条回答
  •  耶瑟儿~
    2021-01-17 11:19

    Add Reference System.Web.Extensions

    then type using System.Web.Script.Serialization;

    Now you should get JavaScriptSerializer valid.

    You can use better approach by adding Newtonsoft.Json.dll through

    Add Reference. See details here : http://json.codeplex.com/

提交回复
热议问题