title: Json.NET (Newtonsoft.Json) - Two 'properties' with same name?
body: <p>I'm coding in C# for the .NET Framework 3.5.</p>
  
  <p>I am trying to parse some Json to a JObject.</p>
  
  <p>The Json is as follows:</p>
  
  <pre><code>{
      "TBox": {
          "Name": "SmallBox",
          "Length": 1,
          "Width": 1,
          "Height": 2 },
      "TBox": {
          "Name": "MedBox",
          "Length": 5,
          "Width": 10,
          "Height": 10 },
      "TBox": {
          "Name": "LargeBox",
          "Length": 20,
          "Width": 20,
          "Height": 10 }
  }
  </code></pre>
  
  <p>When I try to parse this Json to a JObject, the JObject only knows about LargeBox. The information for SmallBox and MedBox is lost. Obviously this is because it is interpreting "TBox" as a property, and that property is being overwritten.</p>
  
  <p>I am receiving this Json from a service that's coded in Delphi. I'm trying to create a C# proxy for that service. On the Delphi-side of things, the "TBox" is understood as the <em>type</em> of the object being returned. The inner properties ("Name", "Length", "Width", "Height") are then understood as regular properties.</p>
  
  <p>I can serialize and deserialize a custom 'TBox' object that has Name, Length, Width, and Height properties. That's fine.</p>
  
  <p>What I want to do is step through all the TBox sections in such a way as to extract the following three Json strings.</p>
  
  <p>First:</p>
  
  <pre><code>{
      "Name": "SmallBox",
      "Length": 1,
      "Width": 1,
      "Height": 2 }
  </code></pre>
  
  <p>Second:</p>
  
  <pre><code>{
      "Name": "MedBox"
      "Length": 5,
      "Width": 10,
      "Height": 10 }
  </code></pre>
  
  <p>Third:</p>
  
  <pre><code>{
      "Name": "LargeBox"
      "Length": 20,
      "Width": 20,
      "Height": 10 }
  </code></pre>
  
  <p>Once I have these strings, I can serialize and deserialize to my heart's content.</p>
  
  <p>I'm finding Newtonsoft.Json to be very good. I really don't want to go messing about with other frameworks if I can avoid it.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>I have very limited input as to changes that can be made to the server.</p>