Modifying the response array objects

This would have worked too

|> Enum.map(& %{id: &1.id, name: &1.name})

BTW “id” is not equal to id:, but the working code uses :id…