title: Parse Response via rest template exchange
body: <p>How to create a POJO class Of below mentioned JSOn Structure by a REST Service. Using RestTemplate.exchange i need to parse this in my java.class file and get approved_by value and use in java code. Below is the response structure:</p>
  
  <pre><code>{
      "approval_rules_overwritten": true,
      "rules": [
          {
              "id": 1,
              "name": "Test",
              "rule_type": "RuleTest",
              "approvals_required": 2,
  
              "approved_by": [
                  {
                      "id": 2,
                      "name": "ABC",
                      "username": "ABC_XYZ",
                      "state": "active",
                  }
              ],
              "approved": false
          }
      ]
  }
  </code></pre>