json.(@player.inventory) do |card| json.extract! card, :id, :rank, :suit, :play_id end