Using JSON.net define class with array in Dictionary
<p>I am trying to do the following inside a <code>Dictionary&lt;string,string&gt;</code></p>

<pre><code>{
    "name": "Bob Barker",
    "devName": "InformationServices",
    "ReturnedData": [{
        "level_heading": "blah1",
        "DeliverBestMedicalValue": "blah2",
        "level_question": "blah3"
    }]
}
</code></pre>

<p>I can add the <strong>name</strong> and <strong>devName</strong> just fine but I am unsure on how to go about adding the <strong>ReturnedData</strong> part of the array to the list so that it will return as the layout above?</p>

<p>Example code I am using:</p>

<pre><code>febRecords.RootObject febRecordsData = JsonConvert.DeserializeObject&lt;febRecords.RootObject&gt;(serverResponse);
Dictionary&lt;string,string&gt; febFormData = new Dictionary&lt;string,string&gt;();

febFormData.Add("name", data.firstname.ToString());
febFormData.Add("devName", febData["Data"]["DevisionName"].ToString());
febFormData.Add("ReturnedData", ???); //&lt;-this is where I am stuck

return Ok(JsonConvert.SerializeObject(febFormData, Newtonsoft.Json.Formatting.Indented));
</code></pre>

<p>As you see, <strong>febFormData.Add("ReturnedData", ???);</strong> is the spot where I am stuck and dont really know what to do in order to get the dictionary to output the correct JSON format like I want.</p>

<p>Any help would be great!</p>

<p><strong>update</strong></p>

<p>Would this be how the class needs to look?</p>

<pre><code>public class theOutput
{
    public string name { get; set; }
    public string devName { get; set; }
    public List&lt;string&gt; ReturnedData { get; set; }
}
</code></pre>