[Doubt] Is there a result limitation in json?

I have a little doubt.

I currently have many results that are returning in json.

However, always at the end of json, there is a% {…}

This limitation that is occurring, would it be the elixir or the external api?

I believe it is because there is a lot of data.

How do I get it to list everything, and not show this% {…}

json =

[
  %{id: "000000001", name: "test"},
  %{id: "000000002", name: "test"},
  %{id: "000000003", name: "test"},
  %{id: "000000004", name: "test"},
  %{id: "000000005", name: "test"},
  %{id: "000000006", name: "test"},
  %{id: "000000007", name: "test"},
  %{id: "000000008", name: "test"},
  %{id: "000000009", name: "test"},
  %{id: "0000000010", name: "test"},
  %{id: "0000000011", name: "test"},
  %{id: "0000000012", name: "test"},
  %{id: "0000000013", name: "test"},
  %{id: "0000000014", name: "test"},
  %{id: "0000000015", name: "test"},
  %{id: "0000000016", name: "test"},
  %{id: "0000000017", name: "test"},
  %{id: "0000000018", name: "test"},
  %{id: "0000000019", name: "test"},
  %{id: "0000000020", name: "test"},
  %{id: "0000000021", ...},
  %{...}, 
  ...
]

I am not really sure if I understand you right. But, inspect has the option limit to limit the number of items and this can be set to :infinity. The iex uses also inspect.

iex(1)> 1..10 |> Enum.into([]) |> IO.inspect(limit: 2)
[1, 2, ...]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
iex(2)> 1..10 |> Enum.into([]) |> IO.inspect(limit: :infinity)
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
iex(3)> IEx.configure(inspect: [limit: 5])
:ok
iex(4)> 1..10 |> Enum.into([]) |> IO.inspect(limit: :infinity)
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[1, 2, 3, 4, 5, ...]
iex(5)> IEx.configure(inspect: [limit: :infinity])
:ok
iex(6)> 1..10 |> Enum.into([]) |> IO.inspect(limit: :infinity)
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
4 Likes