title: How to get JSON from a class, created using Visual Studio's Web Essentials
body: <p>As mentioned in <a href="https://stackoverflow.com/questions/67917547/newbie-question-create-new-json-item-in-an-array">this other question</a>, I'm setting my first steps in C# and JSON.</p>
  <p>I'm working on a small application, that can read information from a DB and write it in a JSON file. In order to do this, I thought of creating the classes as they were defined in the JSON file. For that, I used Web Essentials and this has done a great job: the classes are generated completely. All this is mentioned in my previous question.</p>
  <p>Now I was thinking of using those classes to write back to the JSON file, so I have this situation:</p>
  <pre><code>JSON file1 : used as an input in order to create the class diagram.
  DB         : contains some information I need to add to the JSON file.
  JSON file2 : used as an output, based on &quot;JSON file1&quot;, and having the 
               extra information, retrieved from the DB.
  </code></pre>
  <p>Very naïvely apparently, I've done this:</p>
  <pre><code>root.ToString(); // hoping that this would generate the JSON output.
  </code></pre>
  <p>But, I only seem to get some basic information out of that method (namespace and classname, no content).</p>
  <p>Using intellisense, I don't see any method which generates my JSON output, but there's one flair of hope in my code (the one, generated by Web Essentials), as you can see:</p>
  <pre><code>    public class Rootobject
      {
          public Project project { get; set; }
      }
  
      public class Project
      {
          public string commonDESCRIPTION { get; set; }
          ...
          public Location[] locations { get; set; }
  </code></pre>
  <p>As you can see, neither <code>Rootobject</code> or <code>Project</code> inherit from anything (nor do they realise an interface), and I just cannot believe there isn't any class which covers this behaviour. So, I would like to know from which class I need to inherit in order to solve this issue.<br />
  I, however, don't think it might be that easy, and maybe some Web Essentials configuration editing needs to be done in order to cover this, but I don't know how to modify Visual Studio extension configuration.</p>
  <p><strong>Edit</strong><br />
  Some more information on my Web Essentials installation: after having installed Web Essentials on my Visual Studio 2017 Enterprise platform, I can see <kbd>Paste Special</kbd>, <kbd>Paste JSON as classes</kbd> in my <kbd>Edit</kbd> menu, but I don't see <kbd>Web Essentials</kbd> in the menu toolbar (just <kbd>File</kbd>, <kbd>Edit</kbd>, ...) and in <kbd>Tools</kbd>, <kbd>Options</kbd> I also don't see any <kbd>Web Essentials</kbd> references.</p>
  <p>Can anybody help me?<br />
  Thanks in advance</p>