プログラムでオブジェクトの配列を作成したいと思います。私が期待している最終結果はこれです
[{"nickname":"xxx"},{"nickname":"yyy"},{"nickname":"zzz"}]
これは私のコードです
@tagged_user_array = []
//pingUsers is the array which stored the list or nicknames 'xxx', 'yyy' and 'zzz'
$.each @pingUsers, (index, nick) =>
@tagged_user_array.push(nick)
上記のコードでは、期待した結果を得ることができません。期待どおりの結果を得るには、何を変更する必要がありますか?