Forum Discussion

Igor_Bozhinovsk's avatar
Igor_Bozhinovsk
New Contributor III
3 years ago
Solved

Map Json Structure

Currently we have json data like this : { “Test”: “1” “SerialNumbers”: { “SerialNo”: [ “123”, “456” ] } The desired output is like this: { “Test”: “1” “SerialNumbers”: [ {“S...
  • bojanvelevski's avatar
    3 years ago

    Hi there @Igor_Bozhinovski ,

    I believe the following expression will give you the desired output:

    $SerialNumbers.SerialNo.map(x=>{"SerialNo":x})