title: c# How to retrieve Json data into an array
body: <p>I have found different libraries that can parse Json data, but i did not find any documentation on how to get the data into an C# array or list.</p>
  
  <p>I got this Json data:</p>
  
  <p>{"001":{"Name":"John", "Phone":["Mob - 98837374","Mob - 98363627"]},
   "002":{"Name":"Tom",  "Phone":["Mob - 49858857"]}}</p>
  
  <p>Anybody got a clue? :)</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p><em>Useful details posted by OP as comments re-posted as question edit by AnthonyWJones</em></p>
  
  <p>My code using JSON.NET:</p>
  
  <pre><code>StringBuilder sb = new StringBuilder();
  List&lt;string&gt; entities = (List&lt;string&gt;)JsonConvert.DeserializeObject(responseFromServer, typeof(List&lt;string&gt;));
  foreach (string items in entities) {
    sb.Append(items);
  }
  </code></pre>
  
  <p>But i always get an error when i debug:</p>
  
  <blockquote>
    <blockquote>
      <p>Warning 1 Reference to type 'System.DateTimeOffset' claims it is defined in 'c:\Program >> Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\mscorlib.dll', but it could not >> be found c:\Div\Json dot net\Bin\Newtonsoft.Json.dll"</p>
    </blockquote>
  </blockquote>