Click here to Skip to main content
15,885,757 members
Articles / Programming Languages / Javascript

Deserialize JSON with C#

Rate me:
Please Sign up or sign in to vote.
4.81/5 (28 votes)
14 Jun 2011CPOL1 min read 604.4K   41  
Convert a JSON string to a List of C# Objects

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
14 Jun 2011AlexCode
.NET Framework actually has this functionality built-in.The object is this one: system.web.script.serialization.javascriptserializer.aspx[^]I use this a lot and it works as expected.Here's 2 examples:1. Dumb deserializationHere's the easyest way, where you get what you...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Truphone
Portugal Portugal
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions