title: Creating objects from array to json object
body: <p>I have an array of object like this</p>
  
  <pre><code>[
      {"id": "1", "name": "test"},
      {"id": "2", "name": "test2"},
      {"id": "3", "name": "test3"}
  ]
  </code></pre>
  
  <p>I want to convert it to object list this</p>
  
  <pre><code>{
    "1": {"name": "test"},
    "2": {"name": "test2"},
    "3": {"name": "test3"},
  }
  </code></pre>