AnsweredAssumed Answered

Combining 2 different arrays of an object into single array

Question asked by SaiKumarGoud Mallari on Mar 8, 2018

I have a scenario where I need to combine two separate arrays into single array of id :value pair.
Here is a example of Source data
{
"genres": [
                   "Action/Adventure",
                   "Sci Fi"

               ],
"genres_ids": [
                            1x,
                            2y
                     ]
}

Expected output :
{
"genres": [
                     {
                           "1x": "Action/Adventure",
                           "2y": "Sci Fi"
                    }
               ]
}
Any inputs on how to achieve this please?

Outcomes