title: Need to convert two dimensional array response in to json Object in Angular 9
body: <p>I am getting below response from backend(NodeJS),</p>
  <p><strong>current Response</strong>:</p>
  <pre><code> [ [ '49' ], [ '33' ], [ '60' ], [ '58' ] ]
  </code></pre>
  <p>Need to pass these above  values to Highchart component in JSON Object format as like below in my frontend -Angular 9. I am facing issues in converting two dimensional array values to its corresponding json format.</p>
  <p>Here key 'fin' and its values should be static. For  key -&quot;A&quot; , i need array element 1,3,.. and for key -&quot;B&quot; i need array elements 2,4,etc .</p>
  <p>Can anyone guide me , Please.</p>
  <p><strong>Required format:</strong></p>
  <pre><code>{
  &quot;fin&quot;:[
         '14',
         '16'
        ]
  &quot;A&quot; : [
         '49',
         '60'
        ]
  &quot;B&quot; : [
         '33',
         '58'
        ]
  }
  </code></pre>