title: How to parse JSON objects with numeric keys using JavaScriptSerializer
body: <p>I have an object like below to be deserialized in C#.  I am wondering how I can parse it.  I tried following <a href="https://stackoverflow.com/questions/401756/parsing-json-using-json-net">this example here</a>, but am stumped on how I can get my class to recognize the key of each object (the <code>2</code> and the <code>3</code> below).</p>
  
  <p>The JSON string below basically represents 2 transactions.  I would like to convert each transaction representation into a Transaction object and put it into an array of Transaction object.</p>
  
  <pre><code>{
      "2": {
          "id": "2",
          "user_id": "59",
          "offer_id": "1234"
      },
      "3": {
          "id": "3",
          "user_id": "59",
          "offer_id": "1234"
      }
  }
  </code></pre>
  
  <p>Here are my classes:</p>
  
  <pre><code>public class Transactions
  {
      // what goes here since the "key" field is always different?
  }
  
  public class Transaction
  {
      public int id { get; set; }
      public int user_id { get; set; }
      public int offer_id { get; set; }
  }
  </code></pre>