title: Transform JSON array to JSON object in Azure Logic Apps
body: <p>Using Azure Logic Apps, i'm trying to transform JSON array to JSON object.
  For example, if i have an array as:</p>
  <pre><code>[
    {
      name: 'john'
      id: '1'
    },
    {
      name: 'sarah'
      id: '2'
    },
  ]
  </code></pre>
  <p>I'm would like to have as output:</p>
  <pre><code>{
  '1': 'john',
  '2': 'sarah'
  }
  </code></pre>