title: I am getting one long string back from an API call that I need to turn into an array. The values are comma separated. What is the best way to do this?
body: <p>I am working with data from an api that is returning values formatted like this for a few of the keys:</p>
  <pre><code>      &quot;key_one&quot;: [
          &quot;[\&quot;Some Value One\&quot;,\&quot;Some Value Two\&quot;,\&quot;Some Value Three\&quot;]&quot;
        ],
        &quot;key_two&quot;: [
          &quot;[\&quot;Some Value Four\&quot;,\&quot;Some Value Five\&quot;]&quot;
        ],
  </code></pre>
  <p>The values of the keys come back as an array, but the array contains just one long string. I am looking for a way for taking <strong>THIS</strong>:</p>
  <pre><code>[&quot;[\&quot;Some Value One\&quot;,\&quot;Some Value Two\&quot;,\&quot;Some Value Three\&quot;]&quot;]
  </code></pre>
  <p>and turning it into <strong>THIS</strong>:</p>
  <pre><code>[&quot;Some Value One&quot;,&quot;Some Value Two&quot;,&quot;Some Value Three&quot;]
  </code></pre>
  <p>I have a feeling Regex would be best for this, but I am still a complete novice with Regex and my attempts so far havent gotten me anywhere.</p>
  <p>I also attempted to do a basic for loop that looked for the presence of the &quot; mark, and then checked to see if the character after wasnt a ',' and tried to push or += the letters into a string and then into an array at the end to return, but it was becoming a mess and wasn't working either.</p>
  <p>I am hoping someone here can show me a more elegant solution.....</p>