I am getting below response from backend(NodeJS),
current Response:
[ [ '49' ], [ '33' ], [ '60' ], [ '58' ] ]
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.
Here key 'fin' and its values should be static. For key -"A" , i need array element 1,3,.. and for key -"B" i need array elements 2,4,etc .
Can anyone guide me , Please.
Required format:
{
"fin":[
'14',
'16'
]
"A" : [
'49',
'60'
]
"B" : [
'33',
'58'
]
}