How to show the "paste Json class" in visual studio 2012 when clicking on Paste Special?

c#, json, json.net, visual-studio-2012

Solution

I created a new project, installed Newtonsoft.Json and added a class.

If you have your class file open, copy your Json data and choose Edit -> Paste Special you will see both the options:

If you have some other kind of file open (e.g. app.config), you only see "Paste JSON as As Classes" (and it's greyed out)

It does seem a bit flaky though - sometimes I had to recopy the data before it would show up.

Try a) recopying your data b) playing around with what windows you've got open c) reinstalling the extension

Problem

I am trying to use the past special feature in vs 2012 in order to generate c# class for my Json data. I downloaded the Json.New from NewtonSoft from Nuget and then added a new .cs class the copied my json data to clipboard but when I go to Edit-> Paste Special --> I can only see: Paste XML As Classes only the Paste Json as Classes feature is not showing. Any Suggestions? Thanks you in advance This is what I am getting and please note that I have installed Newtonsoft.Json already: (source: indevcogroup.com)

Original source