Reputation: 1752
Can someone please give some fair idea about how to use JSON?
Upvotes: 2
Views: 6598
Reputation: 2089
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);
Upvotes: 2
Reputation: 6713
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
Upvotes: 1
Reputation: 245419
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
Upvotes: 3