Modifying the response array objects

|> Enum.map(fn x -> %{id: x.id, name: x.name} end)

This seems to have worked