# Modifying the response array objects

**URL:** <https://forum.elixirforum.com/t/modifying-the-response-array-objects/31349>\
**Category:** Questions\
**Tags:** phoenix, list, elixir-map\
**Created:** [May 8, 2020, 3:58pm UTC](https://forum.elixirforum.com/t/modifying-the-response-array-objects/31349 "2020-05-08T15:58:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sahilpaudel](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sahilpaudel/32/18807_2.png) [@sahilpaudel](https://forum.elixirforum.com/u/sahilpaudel)\
**Post date:** [May 8, 2020, 4:59pm UTC](https://forum.elixirforum.com/t/modifying-the-response-array-objects/31349/5 "2020-05-08T16:59:53Z")

</div>

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

```

This seems to have worked

---

_[View the full topic](https://forum.elixirforum.com/t/modifying-the-response-array-objects/31349)._
