title: Creating custom JSON object
body: <p>I am having the below JSON object.</p>
  
  <pre><code>"Department": [
        {
          "depType": "Testing",
          "name": "xyz",
          "address":""
        },
        {
          "deptype": "Developer",
          "name": "abc"
        }
      ]
  </code></pre>
  
  <p>I want to create another object based on the type of deptartment (depType). Something like this</p>
  
  <pre><code>"Testing":{
          "name": "xyz",
          "address":""
          },
  "Developer":{
          "name": "abc"
          }
  </code></pre>
  
  <p>With the help of Object.keys, I was able to get the keys</p>