title: Convert JSON to XML in C#
body: <p>I have code like this:</p>
  
  <p>method call and defination :</p>
  
  <pre><code>List&lt;JiraProject&gt; projects = manager.GetProjects();
  
  public List&lt;JiraProject&gt; GetProjects()
  {
      List&lt;JiraProject&gt; projects = new List&lt;JiraProject&gt;();
      string strAutho = runQuery(JiraResource.project); //,null,null,"GET"
      if (!string.IsNullOrEmpty(strAutho))
      {
  
      }
      //return JsonConvert.DeserializeObject&lt;List&lt;JiraProject&gt;&gt;(strAutho);
      return JsonConvert.DeserializeXmlNode(strAutho, "root");
  }
  </code></pre>
  
  <p>I'm using Newtonsoft json 3rd party lib to convert this to XML. The Error I'm getting: </p>
  
  <blockquote>
    <p>Can not implicitly convert xml document to &lt;List&gt;</p>
  </blockquote>
  
  <p>so I changed the type like : </p>
  
  <pre><code>return JsonConvert.DeserializeXmlNode(&lt;List&lt;JiraProject&gt;&gt;strAutho, "root");
  </code></pre>
  
  <p>Still getting same type of error. How to correct this?</p>