Working with jsonnode class

Working with JsonNode class. Is there any function or property to get the various key value pairs? Would jsonDocument be better? I have a string I got from an http request and I need to manipulate the data. One example of the json is below. all other entries are similar. Certain values omitted for security.
{
  "LicenseUsageList": [
    {
      "UserName": "doman\\username",
      "LicenseType": "license type",
      "AcquisitionTime": "2023-10-12T08:04:52.523",
      "SessionType": "UISERVER-FULL",
      "SessionId": "session id",
      "LicenseProperties": [
        {
          "Key": "DbServerPid",
          "Value": "64"
        },
        {
          "Key": "ProgramName",
          "Value": "program name"
        },
        {
          "Key": "DbExecutionContextId",
          "Value": "0"
        },
        {
          "Key": "Name",
          "Value": "app name"
        },
        {
          "Key": "LoginName",
          "Value": "user name"
        },
        {
          "Key": "LoginTime",
          "Value": "10/12/2023 08:04:52"
        },
        {
          "Key": "HostName",
          "Value": "server name"
        },
        {
          "Key": "HostPid",
          "Value": "hostPid"
        }
      ]
    },
  ]
}


I'd like to access each node via the "UserName" property and find duplicate values
Was this page helpful?