Reputation: 5215
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.
Upvotes: 5
Views: 11367
Reputation: 3190
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".
Upvotes: 9
Reputation: 87218
Yes, you can find such a tool at http://jsontodatacontract.azurewebsites.net/. There's a post about it at http://blogs.msdn.com/b/carlosfigueira/archive/2011/01/11/inferring-schemas-for-json.aspx.
Upvotes: 6