Extract values from JSON to array format using javascript [duplicate]

I have a JSON file and I need to extract the values of playername to an array, How do I efficiently extract and have the results in this format below

[“player1″,”player2″,”player3″,”player4”]

[
{
    "rank": 96,
    "season": 11,
    "playername": "player1",
    "rating": 1503,
    "games": 106,
    "wins": 79,
    "longest_streak": 14,
    "max_rating": 1547,
    "league": 1,
    "max_league": 1,
    "reward": null,
    "group_id": null,
    "group_name": null,
    "group_data": null,
    "profile_id": 0,
    "display_name": null,
    "rank_pre": null,
    "rank_post": null
},
{
    "rank": 98,
    "season": 11,
    "playername": "player2",
    "rating": 1502,
    "games": 224,
    "wins": 134,
    "longest_streak": 11,
    "max_rating": 1607,
    "league": 1,
    "max_league": 3,
    "reward": null,
    "group_id": null,
    "group_name": null,
    "group_data": null,
    "profile_id": 0,
    "display_name": null,
    "rank_pre": null,
    "rank_post": null
}

]

How do i achieve this?