tags:

views:

276

answers:

5

Can someone please give some fair idea about how to use JSON?

+1  A: 

Since there are no specifics, the best I can do is point you to a fairly complete how-to using .NET 3.5 to serialize an Object to JSON:

.NET 3.5: JSON Serialization using the DataContractJsonSerializer

Justin Niessner
A: 

Heres a Sample of using JSON in ASP.NET.

James
+1  A: 

Rick Strahl has written several excellent blog posts on the subject.

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

Paul Suart
+1  A: 

There are a lot of question on stackoverflow on this, see:

http://stackoverflow.com/questions/158818/create-json-with-net

http://stackoverflow.com/search?q=datacontractserializer

Cleiton
+1  A: 

Hi, I use JSON.NET (http://www.codeplex.com/Json) and I think it's a good library. The serialization is almost immediate:

string json = JsonConvert.SerializeObject(obj);

and vice versa:

JObject o = JObject.Parse(json);
Alfred