Showing posts with label json. Show all posts
Showing posts with label json. Show all posts

Tuesday, April 22, 2014

Create C# Classes from JSON

Josh,

So you're working with JSON data and you need to create C# classes to hold the deserialized data.  Naturally you're going to use the JSON.Net library to handle the deserialization, but you would like something to give you a jump start on the C# classes.  You found this json2csharp page that allows you to paste in some JSON and have it generate your C# classes for you.  Now with just a little bit of cleanup you have your working classes!