title: How to read the json response when a 422 (Unprocessable Entity) error occur in C# Visual Studio
body: <p>I'm sending some JSON data to a web service using "PUT" method, but I'm having <em>422 unprocessable entity</em> error. <br> How can I actually see the server response in JSON? I digged deep into the exception but i still can't find the json response.</p>
  
  <p>Ex:</p>
  
  <p>JSON Request:</p>
  
  <pre><code>{
    customer:
    {
      name: "asd",
      address: "test"
    }
  }
  </code></pre>
  
  <p>and if everything was ok it should response to me some JSON data.</p>
  
  <p>Ex: </p>
  
  <pre><code>{
    customer:
    {
      id: 1,
      name: "asd",
      address: "test"
    }
  }
  </code></pre>