1

The old WCF Rest Starter Kit had a interesting feature. It was an additonal Visual Studio menu option under Edit called Paste XML as Types. You can see this in action here on Tim Heuer's blog post concerning the tool.

The WCF REST Starter kit is depreciated in favour of ASP.NET MVC Web API, but does the feature, or a similar feature still exist? Or alternatively, Paste JSON as Types?

It would be useful to have a tool in Visual Studio where you can paste a JSON or XML example and get a class generated.

1 Answer 1

3

There's a blog post about exactly this problem/feature here:

http://www.jphellemons.nl/post/Use-JSON-resource-in-AspNet-C-super-easy-and-fast.aspx

Mads Kristensen's web essentials package does what you need (among other things):

http://visualstudiogallery.msdn.microsoft.com/07d54d12-7133-4e15-becb-6f451ea3bea6

1
  • Oh no! There are a couple of apps out there that do it, if you have a look on codeplex I've seen some. Would be nice to have them built in tho, I agree! Commented Nov 26, 2012 at 5:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.