title: Adding a key:value pair to a JToken/JArray
body: <p>I have a JSON document that has some data inside it like this:</p>
  
  <pre><code>[
      {
          "id": 1,
          "candidate": {
              "firstName": "Subahar",
              "lastName": "Kumar",
              "alias": "S K"
          },
          "seatNo": "WKS14",
          "checkInStatus": "NoShow",
          "tests": [
              {
                  "examCode": "OI4-759F",
                  "examName": "OI Professional of Fish",
                  "confirmationNo": "1-3966461574",
                  "keyCode": "3bdb987e-3623-4edc-9c24-ec9652ac6ac8",
                  "startDate": "1/4/2019",
                  "scheduledDuration": "1",
                  "startTime": "1200",
                  "endTime": "1300",
                  "resultStatus": "NotApplicable",
                  "testStatus": "Voided"
              },
              {
                  "examCode": "CY6-628F",
                  "examName": "CY Quiz of Art",
                  "confirmationNo": "1-6221969273",
                  "keyCode": "2e08c13a-2e52-4bc6-a771-af1670d00d15",
                  "startDate": "1/4/2019",
                  "scheduledDuration": "1",
                  "startTime": "1200",
                  "endTime": "1300",
                  "resultStatus": "NotApplicable",
                  "testStatus": "Voided"
              },
              {
                  "examCode": "SH4-390F",
                  "examName": "SH Quiz of Physics",
                  "confirmationNo": "3-5058796552",
                  "keyCode": "4566b64f-80a3-409e-a0ab-736c8dcf07b6",
                  "startDate": "1/4/2019",
                  "scheduledDuration": "1",
                  "startTime": "1200",
                  "endTime": "1300",
                  "resultStatus": "NotApplicable",
                  "testStatus": "Voided"
              }
          ],
          "candidateFirstName": "Subahar",
          "candidateLastName": "Kumar",
          "candidateAlias": "S K"
      },
  {
  "examCode": "CY7-356F",
  "examName": "CY Verified of Art",
  "confirmationNo": "8-8365446002",
  "keyCode": "892b8218-f31a-4c69-bffe-6ff2d79999ee",
  "startDate": "1/4/2019",
  "scheduledDuration": "1",
  "startTime": "1200",
  "endTime": "1300",
  "resultStatus": "NotUploaded",
  "testStatus": "NotStarted",
  "id": 2,
  "candidate": {
    "firstName": "Divya",
    "lastName": "Swaminathan",
    "alias": "D S"
  },
  "seatNo": "WKS13",
  "checkInStatus": "CheckedIn",
  "tests": [
    {
      "examCode": "CY7-356F",
      "examName": "CY Verified of Art",
      "confirmationNo": "8-8365446002",
      "keyCode": "892b8218-f31a-4c69-bffe-6ff2d79999ee",
      "startDate": "1/4/2019",
      "scheduledDuration": "1",
      "startTime": "1200",
      "endTime": "1300",
      "resultStatus": "NotUploaded",
      "testStatus": "NotStarted"
    }
  ],
  "candidateFirstName": "Divya",
  "candidateLastName": "Swaminathan",
  "candidateAlias": "D S"
    },
      ]
  </code></pre>
  
  <p>What I want to do is add a key:value pair in the JToken/JObject where the confirmation number is a specific one. For this case, i want to add a key value pair <code>("actions":"Launch, Ready, Done")</code> to the Jtoken/object within the {} where the confirmation number is <code>"1-3966461574"</code> within the tests array. Here's what I have done so far</p>
  
  <pre><code>JArray rosterData = GetRosterData();
          foreach (var roster in rosterData.Children&lt;JObject&gt;()) {
              foreach (var property in roster.Properties()) {
                  if (property.Name.Equals("tests")) {
  
                  }
  
              }
          }
  </code></pre>
  
  <p>This is where I'm stuck as I don't know how to proceed further. </p>