title: Need Help getting a specific value from a JSON key/value pair
body: <p>I am pulling data from a 3rd party API and have myself some code that looks like this...</p>
  
  <pre><code>public partial class Form1 : Form
  {
      int playSystem = 2;
      string playID = "";
  
      public Form1()
      {
          InitializeComponent();
      }
  
      private void xBox_CheckedChanged(object sender, EventArgs e)
      {
          playSystem = 1;
      }
  
      public void playstation_CheckedChanged(object sender, EventArgs e)
      {
          playSystem = 2;
      }
  
      private async void searchButton_Click(object sender, EventArgs e)
      {
          statDisplay.Clear();
  
          var userName = nameBox.Text;
  
          using (var client = new HttpClient())
          {
              client.DefaultRequestHeaders.Add("X-API-KEY", "xxxxxxxxxxxxxxxx");
  
              var response = await client.GetAsync("https://bungie.net/platform/Destiny/SearchDestinyPlayer/" + playSystem + "/" + userName);
              var content = await response.Content.ReadAsStringAsync();
              dynamic item = Newtonsoft.Json.JsonConvert.DeserializeObject(content);
  
              statDisplay.AppendText(item.ToString());
          }
      }
  }
  </code></pre>
  
  <p>Instead of displaying all the information in the object as a string, I would like to take a specific value from that object, store it into a variable, and use that variable in another HTTPRequest.</p>
  
  <p>The output I am getting looks like this...</p>
  
  <pre><code>{
    "Response": [
      {
        "iconPath": "/img/theme/destiny/icons/icon_psn.png",
        "membershipType": 2,
        "membershipId": "01234567890",
        "displayName": "xxxxxxxxxx"
      }
    ],
    "ErrorCode": 1,
    "ThrottleSeconds": 0,
    "ErrorStatus": "Success",
    "Message": "Ok",
    "MessageData": {}
  }
  </code></pre>
  
  <p>I would like to specifically focus on the membershipId key/value.</p>