title: Unable to parse JSON array in WCF REST
body: <p>This is my JSON file that contains multiple objects of "Application":</p>
  
  <pre><code>{"Application":[{"appid":"0","appname":"application0"},
                  {"appid":"1","appname":"application1"},
                  ....
                 ]} 
  </code></pre>
  
  <p>I'm receiving it from Android code into my WCF REST service method:</p>
  
  <pre><code>[WebInvoke(Method = "POST", UriTemplate = "/AcceptApp", RequestFormat = WebMessageFormat.Json,  
      ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.WrappedRequest)]
  [OperationContract]
  string AcceptApplication(Stream jsonstring);
  </code></pre>
  
  <p>And here's method definition:</p>
  
  <pre><code>public string AcceptApplication(Stream inputStream)
  {
      StreamReader r = new StreamReader(inputStream);
      string jsonstring = r.ReadToEnd();
      try
      {
         List&lt;ApplicationEntity&gt; list = JsonConvert.DeserializeObject&lt;List&lt;ApplicationEntity&gt;&gt;(jsonstring);
         for (int i = 0; i &lt; list.Count; i++)
         {
           // using data
         }
      }
      catch (Exception E)
      {
          Logger.Error(E.Message);
      }
  </code></pre>
  
  <p>My ApplicationEntity:</p>
  
  <pre><code>public class ApplicationEntity
  {
      public string appid { get; set; }
      public string appname { get; set; }
  } 
  </code></pre>
  
  <p>I'm getting jsonstring , but error I'm getting:</p>
  
  <pre><code>Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g.    
  {"name":"value"}) into type  
  'System.Collections.Generic.List`1[ApplicationEntity]' 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&lt;T&gt;) 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.
  </code></pre>