title: Trying to deserialize JSON using JSON.NET and DataContractJsonSerializer fails
body: <p>plz help, I'm stuck.
  I have a WCF service which returns something like this:</p>
  
  <pre><code>{
     "GetDataRESTResult":
       [
         {"Key1":100.0000,"Key2":1,"Key3":"Min"},
         {"Key1":100.0000,"Key2":2,"Key3":"Max"}
       ]
  }
  </code></pre>
  
  <p>and I would like to deserialize it, but whatever I use (JSON.NET or DataContractJsonSerializer) I'm getting errors.
  When using DataContractJsonSerializer I'm using theis code:</p>
  
  <pre><code>byte[] data = Encoding.UTF8.GetBytes(e.Result);
  MemoryStream memStream = new MemoryStream(data);
  DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(List&lt;DataDC&gt;));
  List&lt;DataDC&gt; pricinglist = (List&lt;DataDC&gt;)serializer.ReadObject(memStream);
  </code></pre>
  
  <p>where DataDC is the data contract which I've got from the service reference of the WCF REST service I'm getting the JSON data from, and the error I'm getting is InvalidCastException...</p>
  
  <p>Trying to use JSON.NET I get another exception, but still nothing I can figure out, can anyone help please?</p>
  
  <p>EDIT
    Here's a JSON.NET stacktrace:</p>
  
  <blockquote>
    <p>Cannot deserialize the current JSON object (e.g. {"name":"value"})
    into type
    'System.Collections.Generic.List`1[MyApp.MyServiceReference.DataDC]'
    because the type requires a JSON array (e.g. [1,2,3]) to deserialize
    correctly. To fix this error either change the JSON to a JSON array
    (e.g. [1,2,3]) or change the deserialized type so that it is a normal
    .NET type (e.g. not a primitive type like integer, not a collection
    type like an array or List) that can be deserialized from a JSON
    object. JsonObjectAttribute can also be added to the type to force it
    to deserialize from a JSON object. Path 'GetDataRESTResult', line 1,
    position 23.</p>
  </blockquote>