How to use Json in asp.net 3.5?

Can someone please provide some insight on how to use JSON?

+2


source to share


4 answers


I am using JSON.NET ( http://www.codeplex.com/Json ) and I think it is a good library. Serialization is almost immediate:

string json = JsonConvert.SerializeObject(obj);

      



and vice versa:

JObject o = JObject.Parse(json);

      

+2


source


Since the specifics don't exist, the best I can do is point you to a fairly complete practical use of .NET 3.5 to serialize an object to JSON:



.NET 3.5: JSON Serialization Using DataContractJsonSerializer

+3


source


Rick Strahl has written some great blog posts on this subject.

Try this post for starters: http://www.west-wind.com/weblog/posts/164419.aspx

+1


source


Heres a Sample Using JSON in ASP.NET.

0


source







All Articles