1 2 3 4
json.array!(@teams) do |team| json.extract! team, :id, :match_id json.url team_url(team, format: :json) end