If you’re working against an API then you’ll probably get your data in either JSON or XML format. In order to deserialize those JSON and XML objects into their C# equivalents you’ll need actual POCOs to serialize to. Luckily, Visual Studio has built in functionality for this already.
How to convert JSON and XML to POCOs in Visual Studio
Edit > Paste Special > Paste JSON As Classes/Paste XML As Classes
That’s it! If you don’t feel like opening up Visual Studio then you can also use the online tool json2csharp which does JSON to C# POCO conversion online.
This feature is one of many “hidden” gems in Visual Studio that I love. 🙂