title: C# Parsing JSON array of objects
body: <p>I have an array of objects like this in <code>json</code> format:</p>
  
  <pre><code>{"results":[{"SwiftCode":"","City":"","BankName":"Deutsche Bank","Bankkey":"10020030","Bankcountry":"DE"},{"SwiftCode":"","City":"10891 Berlin","BankName":"Commerzbank Berlin (West)","Bankkey":"10040000","Bankcountry":"DE"}]}
  </code></pre>
  
  <p>What I want to get is a <code>object[]</code> in C#, where one object  contains all the data what is in one json object. The thing is, I can <strong>NOT</strong> make a class with the properties of this object like here:</p>
  
  <pre><code>public class Result
  {
      public int SwiftCode { get; set; }
      public string City { get; set; }
      //      .
      //      .
      public string Bankcountry { get; set; }
  }
  </code></pre>
  
  <p>Because I get everytime different results back, but I know it's always an array of objects. Someone knows how I could manage to get an array of objects back?</p>
  
  <p>EDIT</p>
  
  <p>I have to pass this object to powershell via <code>WriteObject(results)</code>. So the ouput should only be the object IN the <code>array</code>.</p>