Iterate in code

I want to write the iterate function in code…
I need to iterate over an array of album releases inside “Schema Markup”:

{
  "album": [
    // Iterate over each album release
    {{#each ${page->get('data')->get('portalData')->get('Green Category')} as |release|}}
      {
        "@type": "MusicAlbum",
        "name": "{{release->get('Album')}}",  // Dynamic album name
        "url": "{{release->get('urlSpotify')}}",  // Dynamic Spotify URL
        "byArtist": {
          "@type": "Person",
          "name": "{{release->get('Artist')}}"  // Dynamic artist name
        },
        "datePublished": "{{release->get('Releasedate First')}}",  // Dynamic release date
        "image": "{{release->get('coverPicture_webp')}}",  // Dynamic album cover image
        "audio": [
          {
            "@type": "MusicRecording",
            "url": "{{release->get('urlSpotify')}}",  // Dynamic Spotify URL
            "inAlbum": {
              "@type": "MusicAlbum",
              "name": "{{release->get('Album')}}"
            }
          },
          {
            "@type": "MusicRecording",
            "url": "{{release->get('urlAppleMusic')}}",  // Dynamic Apple Music URL
            "inAlbum": {
              "@type": "MusicAlbum",
              "name": "{{release->get('Album')}}"
            }
          },
          {
            "@type": "MusicRecording",
            "url": "{{release->get('urlTidal')}}",  // Dynamic Tidal URL
            "inAlbum": {
              "@type": "MusicAlbum",
              "name": "{{release->get('Album')}}"
            }
          },
          {
            "@type": "MusicRecording",
            "url": "{{release->get('urlYoutubeMusic')}}",  // Dynamic YouTube Music URL
            "inAlbum": {
              "@type": "MusicAlbum",
              "name": "{{release->get('Album')}}"
            }
          },
          {
            "@type": "MusicRecording",
            "url": "{{release->get('urlAmazonMusic')}}",  // Dynamic Amazon Music URL
            "inAlbum": {
              "@type": "MusicAlbum",
              "name": "{{release->get('Album')}}"
            }
          }
        ]
      }
    {{/each}}
  ]
}

Anyone know if this is possible?