title: How to iterate through json array in Scala and apply API call for each json element
body: <pre><code>[
    {
      &quot;color&quot;: &quot;#759c69&quot;,
      &quot;studyId&quot;: &quot;4455&quot;,
      &quot;value&quot;: &quot;Asparagus&quot;
    },
    {
      &quot;color&quot;: &quot;#e68cb9&quot;,
      &quot;studyId&quot;: &quot;4455&quot;,
      &quot;value&quot;: &quot;Awesome&quot;
    },
    {
      &quot;color&quot;: &quot;#6e665d&quot;,
      &quot;studyId&quot;: &quot;4455&quot;,
      &quot;value&quot;: &quot;Bear Hug&quot;
    },
    {
      &quot;color&quot;: &quot;#5d7ed6&quot;,
      &quot;studyId&quot;: &quot;4455&quot;,
      &quot;value&quot;: &quot;Blue Eyes&quot;
    }
  ]
  </code></pre>
  <p>I want to iterate through JSON array in Scala and apply API call for each JSON element. How can I do it in Scala?</p>