List of nested maps help

Hi, I have the following nested map below:

ordered_contents =[
  %{
    "order_id" => 1234567,
    "version" => 24,
    "content" => [
      %{
        "contents" => [
          %{
            "id" => "551546104",
            "level" => "",
            "quantity" => 340,
            "random" => true,
            "type" => "resource"
          },
          %{
            "id" => "229186523",
            "level" => "",
            "quantity" => 15,
            "random" => true,
            "type" => "resource"
          }
        ],
        "id" => 2323110,
        "name" => "RSS Gold",
        "type" => "U",
        "version" => 24
      }
    ]
  },
  %{
    "order_id" => 1234568,
    "version" => 24,
    "content" => [
      %{
        "contents" => [
          %{
            "id" => "551546104",
            "level" => "",
            "quantity" => 300,
            "random" => true,
            "type" => "resource"
          },
          %{
            "id" => "229186523",
            "level" => "",
            "quantity" => 40,
            "random" => true,
            "type" => "resource"
          }
        ],
        "id" => 2323110,
        "name" => "RSS Silver",
        "type" => "U",
        "version" => 24
      }
    ]
  }
]

I am new to Elixir, how do I flatten the map to read all the map value or there any shorter way?

Welcome! When you say “read all the map values” what do you have in mind? Can you provide an example of the kind of data you’re looking to generate from that input?