JSON sample to [DataContract]

Ivan G. picture Ivan G. · Oct 28, 2011 · Viewed 11k times · Source

Is there any tool allowing to generate DataContract entity definitions based on a JSON sample? I'm really missing the old good WSDL metadata with code generation facilities.

Answer

charisk picture charisk · Jul 2, 2015

I know this is a very old question but it's worth noting that if you're using Visual Studio you get that without any external tools - you can copy some JSON in your clipboard and then go to Edit > Edit Special > "Paste JSON As Classes".