Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKyaw Tun Sein
2,291 PointsThere is no 'paste Json as Classes' in paste special of my visual studio. What to do?
I can only see paste XML as classes.
6 Answers
Kyaw Tun Sein
2,291 PointsSolved! Just need to install Microsoft Web Development Tools.
evanpavan
5,025 PointsFor anyone using an editor other than visual studio there's a free application that parses JSON into 'types'.
I used this to paste the types into VS code.
Kevin Gates
15,053 PointsMake sure you're attempting to paste from the Edit menu. If you just right-click what you've highlighted, you will not get the "Paste Special" option. You must go to Top Menu -> Edit -> Paste-Special -> Paste JSON as Classes.
The above is at least true for Visual Studio 2017 Developer Edition. (She's using Community edition, so it should work there too.)
Emma Wyman
13,250 PointsI am doing what you say here, but there just is no Paste Special option listed under edit. All I see is Paste and Cycle Clipboard Ring (whatever that means). Also if you have to have Microsoft Web Development Tools installed, how do you do that?
Kevin Gates
15,053 PointsEmma Wyman : try going to Tools -> Get Tools and Features, and make sure you have libraries added for web development. Not 100% sure if it's there, but I would look there first.
Christian Higgins
15,758 PointsKyaw Tun Sein , Kevin Gates, and Emma Wyman, do you know if Microsoft Web Development Tools. is Workload or an Individual Component on the installation wizard? I'm having trouble finding it.
David Marquardt
13,931 PointsIs this for mac or windows? I'm in Community Edition. I've uninstalling and reinstalling nothing works. Where are these mythical Development Tools for mac? I can't find anything from 2019 with an actual solution to this problem! Are there step by step instructions...FOR MAC?
Arie Vrolijk
2,445 PointsIf you use Visual Studio and don't have the paste special option: Go to modify in the Visual Studio Installer and then under Workloads>Web & Cloud select "ASP.NET and web development"
Erdem Meral
25,022 PointsI am using the mac edition of visual studio and there is no paste special. Anyone knows??
Simbarashe Chikaura
8,979 PointsDid you ever find a solution?
Thomas Swatland
13,530 PointsI'm having the same issue as Erdem. Any ideas?
Kevin Gates
15,053 PointsThomas Swatland : did you see my answer above?