1 2 3 4
json.array!(@users) do |user| json.extract! user, :id, :name, :email, :user_name json.url user_url(user, format: :json) end