Looking for assistance to convert the JSon structure below. The size of the input JSon array may vary. I'm struggling to identify the repetitive pattern.
var input = [{
"value": 1
}, {
"value": 2
}]
var output = [{
"key": {
"value": 1
}
}, {
"key": {
"value": 2
}
}]
Your help is much appreciated!