Visual Studio has a neat little trick to generate POCO’s from XML or JSON. VS allows you to paste XML or JSON as classes.
- Open your XML or JSON file in your favorite text editor.
- Copy the XML or JSON data to your clipboard.
- Create a new class file in your Visual Studio project.
- From within Visual Studio, select Edit -> Paste Special -> Paste [XML or JSON] as Classes
You now have simple POCO’s without having to create them by hand. Enjoy.

Hi, just wanted to tell you, I enjoyed this post. It was inspiring.Keep on posting!
LikeLike