Visual Studio Paste Special Feature

Visual Studio has one very special and useful editing feature, using that you can paste JSON and XML data as class(s). This can help developers to generate Model or Data classes for XML and JSON structures.

Know how you can use Visual Studio Paste Special edit option to generate classes for JSON and XML structures. Try this is really very good  feature.

How to use?

To use this feature just copy XML or JSON data to clipboard and open class file in Visual Studio. Now goto EDIT—>Paste Special menu, here you will see two sub menus “Paste JSON as Classes” and “Paste XML as Classes”. Select option according to your data. This will paste equivalent classes in active class file.

Here is option

vs-menu-paste-json-as-classes

paste-json-as-classes