Ramesh
Ramesh

Reputation: 1752

How to use Json in asp.net 3.5?

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

Upvotes: 2

Views: 6598

Answers (4)

Alfre2
Alfre2

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

Paul Suart
Paul Suart

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

James
James

Reputation: 82096

Heres a Sample of using JSON in ASP.NET.

Upvotes: 0

Justin Niessner
Justin Niessner

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

Related Questions