Geeks With Blogs
Rotten Code it can always work better - but at least it should work February 2010 Entries
Read JSON into class with C#
So you want to read a string (say, from a file or just passed in as a variable) into a .NET class. Here's a quick example of how to do this. Let's start with our sample JSON: {"FirstName":"Joe","LastNam... So to keep this simple, let's say we want to populate a class with this data. our class: public class Person { private string _FirstName; private string _LastName; private string _MiddleName; public string FirstName { get { return this._FirstName; } set { this._FirstName= ......

Posted On Thursday, February 18, 2010 2:08 PM

Copyright © Marcus Shockley | Powered by: