Paste JSON as Classes

Incidentally, if you have Visual Studio 2012 or later, there’s a great new feature built into it. Copy your JSON data from whatever source you have, and then in a new class file, rather than just performing a CTRL+V as normal, click Edit, Paste Special in your menus. You’ll find ‘Paste JSON as Classes’, which will take your JSON code and turn in directly into a .NET class ready for you to use. Be careful, though; it can get very complicated, very fast.