System.Web.Helpers not found in VS2015

后端 未结 4 2055
不思量自难忘°
不思量自难忘° 2020-12-18 20:38

I\'m trying to add some JSON parsing to the C# code in VS2015 but I can\'t find:

System.Web.Helpers

as the MS documentation suggests. I\'ve looked at other pe

4条回答
  •  感动是毒
    2020-12-18 21:01

    I was wanting to work with JSON as well in an ASP.Net project using VS2015. I ended up here trying to find answers. Right about the time I finished reading the other answers on this post I noticed my project already had a reference to Newtonsoft.Json. Never heard of it before so I looked it up; I'm glad I did.

    It was literally a one liner to Serialize a List to JSON. You can pass in an Object so you should be able to serialize most any Object within reason.

    Ultimately I didn't need to install MVC3 or reference System.Web.Helpers

    Hope this helps!

    NewtonSoft Serializing and Deserializing JSON

提交回复
热议问题