title: System.MissingMethodException: Error while deserialization of json array
body: <p>I am getting error while deserializing jsonString. </p>
  
  <p>Error is <code>Type 'oodleListingsUser' is not supported for deserialization of an array.</code></p>
  
  <p>My code of deserialization is</p>
  
  <pre><code>    string jsonString = new WebClient().DownloadString("http://api.oodle.com/api/v2/listings?key=TEST&amp;region=region_value&amp;category=category_value&amp;format=json");
  
      JavaScriptSerializer ser = new JavaScriptSerializer();
  
      jsonOodleApi p = ser.Deserialize&lt;jsonOodleApi&gt;(jsonString);
  </code></pre>
  
  <p>My class defination of jsonOodleApi is</p>
  
  <pre><code>public class jsonOodleApi
  {
      public oodleCurrent current;
      public oodleListings[] listings;
      public oodleMeta meta;
  
      public string state { get; set; }
  
  }
  </code></pre>
  
  <p>Defination of <strong>oodleCurrent</strong>  and <strong>oodleMeta</strong> I am not giving because its perfect !</p>
  
  <p>Defination of <strong>oodleListings</strong> is</p>
  
  <pre><code>public class oodleListings
  {
      public string id { get; set; }
      public string title { get; set; }
  
      public oodleListingsUser user;
  
      // I have skipped some of fields because it have no issue at all.
  
  }
  </code></pre>
  
  <p>Defination of <strong>oodleListingsUser</strong> is </p>
  
  <pre><code>public class oodleListingsUser
  {
      public string id { get; set; }
      public string url { get; set; }
      public string name { get; set; }
      public string photo { get; set; }
  }
  </code></pre>
  
  <p>The problem is my <strong>jsonString</strong> sometimes returns only one value of user (type of <em>oodleListingsUser</em>), and sometimes it returns array of user, and sometimes it returns null of user !</p>
  
  <p>When it returns only one user, it runs perfectly fine ! No issue.</p>
  
  <p>But when it returns array of user, <em>bloom !</em> error occurs <strong><code>Type 'oodleListingsUser' is not supported for deserialization of an array.</code></strong></p>
  
  <p>Even I have tried  <code>public oodleListingsUser[] user</code> But it gives error as </p>
  
  <pre><code>No parameterless constructor defined for type of 'oodleListingsUser[]'
  </code></pre>
  
  <p>for the value which returns only one user !</p>
  
  <p>Now what should i do to solve this issue ?</p>