```ruby
json.array!(@players) do |player|
  json.extract! player, :name
  json.url player_url(player, format: :json)
end```

Update JSON response for player under game
user
```ruby
json.array!(@players) do |player|
  json.extract! player, :name
  json.url game_player_url(@game, player, format: :json)
end```
assistant