title: Looping through JObject c#
body: <p>I am using JSON.NET to parse my JSON:</p>
  
  <pre><code>JObject jsonObject = JObject.Parse(myJson);
  </code></pre>
  
  <p>My JSON looks something like this:</p>
  
  <pre><code>{
    "_links": {
      "self": {
        "href": "https://api-uat.dwolla.com/accounts/069b759d-6267-42d6-b30b-5d03ddd25673/funding-sources",
        "type": "application/vnd.dwolla.v1.hal+json",
        "resource-type": "funding-source"
      }
    },
    "_embedded": {
      "funding-sources": [
        {
          "_links": {
            "self": {
              "href": "https://api-uat.dwolla.com/funding-sources/0b2f6a31-b909-4c7d-a9f8-6253e5f791d0",
              "type": "application/vnd.dwolla.v1.hal+json",
              "resource-type": "funding-source"
            },
            "account": {
              "href": "https://api-uat.dwolla.com/accounts/069b759d-6267-42d6-b30b-5d03ddd25673",
              "type": "application/vnd.dwolla.v1.hal+json",
              "resource-type": "account"
            },
            "balance": {
              "href": "https://api-uat.dwolla.com/funding-sources/0b2f6a31-b909-4c7d-a9f8-6253e5f791d0/balance",
              "type": "application/vnd.dwolla.v1.hal+json",
              "resource-type": "balance"
            }
          },
          "id": "0b2f6a31-b909-4c7d-a9f8-6253e5f791d0",
          "status": "verified",
          "type": "bank",
          "name": "Bank Of America",
          "created": "2017-03-22T12:54:51.000Z",
          "removed": false,
          "channels": [
            "ach"
          ],
          "bankName": "SANDBOX TEST BANK"
        },
        {
          "_links": {
            "self": {
              "href": "https://api-uat.dwolla.com/funding-sources/2235c3f5-03d6-4b7c-8ffb-c389c94375eb",
              "type": "application/vnd.dwolla.v1.hal+json",
              "resource-type": "funding-source"
            },
            "account": {
              "href": "https://api-uat.dwolla.com/accounts/069b759d-6267-42d6-b30b-5d03ddd25673",
              "type": "application/vnd.dwolla.v1.hal+json",
              "resource-type": "account"
            }
          },
          "id": "2235c3f5-03d6-4b7c-8ffb-c389c94375eb",
          "status": "verified",
          "type": "bank",
          "name": "Superhero Savings Bank",
          "created": "2017-03-17T06:39:28.000Z",
          "removed": true,
          "channels": [
            "ach"
          ],
          "bankName": "SANDBOX TEST BANK"
        }      
      ]
    }
  }
  </code></pre>
  
  <p>Here I could have N number of funding sources. I want to get the <code>href</code> of <code>self</code> where removed is <code>false</code> for each funding sources.  So in the above example I need:</p>
  
  <p><code>href:"https://api-uat.dwolla.com/funding-sources/0b2f6a31-b909-4c7d-a9f8-6253e5f791d0"</code>.</p>
  
  <p>I tried to achieve this by looping through the <code>JObject</code>:</p>
  
  <pre><code>foreach (var x in jsonObject)
  {
      if(x.Key == "_embedded")
      {
          foreach (var fundingSources in x.Value["funding-sources"])
          {
              foreach (var y in fundingSources)
              {
  
              }
          }
      }
  }
  </code></pre>
  
  <p>Unfortunately I could not get the funding sources into an array.</p>