title: Comparing JSON response of
body: <p>Good morning everyone. I have a service which returns me a JSON response (something like below):</p>
  
  <pre><code>{
    "sessionid": "AQIC5wM2LY4SfcytTIcteNkTtCVrE8A-AS7VR*",
    "Customers": [
      {
        "id": "4193942846",
        "firstname": "Anto",
        "lastname": "Paul",
        "customertype": "ph",
        "companyCode": "ABCD",
      },
      {
        "id": "4193942236",
        "firstname": "Dimple",
        "lastname": "Paul",
        "customertype": "ph",
        "companyCode": "AB",
      }
    ],
    "Status": "ACTIVE",
    "serviceStatus": "SUCCESS",
  
    "Addresses": {
      "Address": [
        {
      "type": "M",
          "addr1": "11011, main st",
          "addr2": "Apt. 2",
          "zipcode": "11011"
        }
       ]
      } 
  }
  </code></pre>
  
  <p>The above structure varies based on the input I pass to the service. So, I cant contruct one class to deserialize the response. I need to compare (attribute-attribute comparison) this response to a response I already have with me (in a different place).</p>
  
  <p>I tried to do it with dynamic class in C# but no luck so far. Could someone share a better,working approach? Thank you.</p>