Hi I have this javascript array from json and I want expected output below using javascript ? Can someone give some direction.
[
[{ "Key": 7, "Value": "Tours & experiances" }],
[{ "Key": 6, "Value": "Theatre, dance and film" }],
[
{ "Key": 2, "Value": "Children & family" },
{ "Key": 5, "Value": "Talks, course & workshops" }
],
[{ "Key": 4, "Value": "Music" }],
[{ "Key": 9, "Value": "Sports & fitness" }],
[
{ "Key": 3, "Value": "Eat and drink" },
{ "Key": 8, "Value": "Shopping, markets & fairs" }
]
]
Expected Output
[
{ "Key": 7, "Value": "Tours & experiances" },
{ "Key": 6, "Value": "Theatre, dance and film" },
{ "Key": 2, "Value": "Children & family" },
{ "Key": 5, "Value": "Talks, course & workshops" },
{ "Key": 4, "Value": "Music" },
{ "Key": 9, "Value": "Sports & fitness" },
{ "Key": 3, "Value": "Eat and drink" },
{ "Key": 8, "Value": "Shopping, markets & fairs" }
]