title: Cypress: Validate Json Object
body: <p>I am kind of new to cypress.io, I am making a post call, and in return i get a json object.</p>
  <p>According to cypress.io documentation, I should be using below code:</p>
  <pre><code>expect(response.body).to.have.property('code','unauthorized')
  </code></pre>
  <p>But when i run the test then i get blow error:</p>
  <p><a href="https://i.stack.imgur.com/clxPV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/clxPV.png" alt="enter image description here" /></a></p>
  <p>Can anyone help me how I can fix this error.</p>
  <p>Thanks in advance</p>