以下の形式で json から応答を受信しています
["user0", "user1", "user2", "user3", "user5", "user6", "user7"]
そして、私はそれを以下のフォーマットに変換する必要があります
[
{ id: 'user0', text: 'user1'},
{ id: 'user1', text: 'user2'},
{ id: 'user2', text: 'user3'},
{ id: 'user3', text: 'user4'},
{ id: 'user5', text: 'user5'},
{ id: 'user6', text: 'user6' },
{ id: 'user7', text: 'user7' }
];
これを JavaScript で実現する方法。