Unable to Serialize/Deserialize List<> object into JSON
<p>I am working on 2 web applications; A &amp; B. now i have a shared class named CRUDOutput as follow on both web applications:-</p>

<pre><code>public class CRUDOutput
{
    public Operation4 operation { get; set; }
}
public class Operation4
{
    public Result result { get; set; }
    public string name { get; set; }
}
public class Result
{
    public string status { get; set; }
    public string message { get; set; }

}
</code></pre>

<p>now inside web application A i am returning the following:-</p>

<pre><code>[HttpPost]
public ActionResult CreateResource(CreateResource cr)
{
    List&lt;CRUDOutput&gt; co = new List&lt;CRUDOutput&gt;();
            co.Add(JsonConvert.DeserializeObject&lt;CRUDOutput&gt;(crudoutput));
            co.Add(JsonConvert.DeserializeObject&lt;CRUDOutput&gt;(crudoutput2));

    return Json(JsonConvert.SerializeObject(co));
}
</code></pre>

<p>now from web application B, i am calling the action method as follow:-</p>

<pre><code>try
{
    using (WebClient wc = new WebClient()) 
    {
        string url = "https://localhost:44302/" + "Home/CreateResource";
        Uri uri = new Uri(url);
        wc.Headers.Add(HttpRequestHeader.ContentType, "application/json");

        output = wc.UploadString(uri,  data);
    }
}
catch (WebException e)
{
}
List&lt;CRUDOutput&gt; result = JsonConvert.DeserializeObject&lt;List&lt; CRUDOutput&gt;&gt;(output);
</code></pre>

<p>but i will get the following exception when i tried to deserialize the output:-</p>

<blockquote>
  <p>Error converting value
  "[{"operation":{"result":{"status":"Success","message":"Resource has
  been added successfully to ......"},"name":"CREATE
  RESOURCE"}},{"operation":{"result":{"status":"Failed","message":"Account
  addition "},"name":"ADD ACCOUNTS"}}]" to type
  'System.Collections.Generic.List`1[S.ViewModels.CRUDOutput]'. Path '',
  line 1, position 464.</p>
</blockquote>

<p>now the JSON return from web application A will be as follow:-</p>

<pre><code>"\"[{\\\"operation\\\":{\\\"result\\\":{\\\"status\\\":\\\"Success\\\",\\\"message\\\":\\\"Resource 123 rfrf has been added successfully \\\"},\\\"name\\\":\\\"CREATE RESOURCE\\\"}},{\\\"operation\\\":{\\\"result\\\":{\\\"status\\\":\\\"Failed\\\",\\\"message\\\":\\\"Account addition \\\"},\\\"name\\\":\\\"ADD ACCOUNTS\\\"}}]\""
</code></pre>

<p>so can anyone advice why i am unable to deserialize to a list of objects?</p>