How to use Json in asp.net 3.5?
Can someone please provide some insight on how to use JSON?
+2
Ramesh
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
Alfre2
source
to share
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
Justin niessner
source
to share
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
Paul suart
source
to share
Heres a Sample Using JSON in ASP.NET.
0
James
source
to share