title: JSON to ExpandoObject convertion in C#
body: <pre><code>{  
  "Jhone":[  
    {  
       "Key":"Employeename",
       "Value":"Jhone"
    },
    {  
       "Key":"Address",
       "Value":[  
          {  
             "Key":"City",
             "Value":"Newyork"
          },
          {  
             "Key":"Country",
             "Value":"USA"
          }
       ]
    }
  ],
  "Mohamed":[  
    {  
       "Key":"Employeename",
       "Value":"Mohamed"
    },
    {  
       "Key":"Address",
       "Value":[  
          {  
             "Key":"City",
             "Value":"Delhi"
          },
          {  
             "Key":"Country",
             "Value":"india"
          }
       ]
    }
  ]
  }
  </code></pre>
  
  <p>This is my JSON format. How to convert in to ExpandoObject in c#?
  Here is my code as</p>
  
  <pre><code>using System.Dynamic;
  using System.Web.Script.Serialization;
  using System.IO;
  using System.Collections;
  using Newtonsoft.Json;
  using Newtonsoft.Json.Linq;
  
  var ictionarys = JsonConvert.DeserializeObject&lt;Dictionary&lt;string, dynamic&gt;&gt;(value);
  foreach (var item in ictionarys)
  {
  List&lt;object&gt; itemList = new List&lt;object&gt;();
  
  foreach (var item2 in (ICollection)item.Value)
  {
     //Here how to code
  }                   
  Console.WriteLine(item.Key + "=&gt; " + item.Value);
  }
  </code></pre>