title: Parse Json Array on new lines correctly in StreamDeckSDK
body: <p>I'm trying to take a JSON Array and display the full output, but nicely formatted. (see commented out section) Unfortunately the JSON array returns back with OBJECT then its output. So I stringify to fix the [Object, Object] error I was getting.  But now everything is on one line. How do iterate through the array and put them on new lines?</p>
  
  <p>Second issue I'm having is, I can't do 3 of the same functions as you notice in the uncommented section. I'd like to take each <code>result</code> and add a new line in between them. </p>
  
  <pre><code>   function setTitleStatus(context, settings) {
          $SD.api.setTitle(context, "Updating...");
          getResults(result =&gt; resultCallback(result, context));
      }
  
      function resultCallback(result, context) {
          if (!result.hasOwnProperty("Object")) {
             $SD.api.setTitle(context, JSON.stringify(result));
             console.log(JSON.stringify(result, '%c%s'));
             return;
          }
          // This is where I'd like all 3 objects to be split on new lines.
          // $SD.api.setTitle(context, result.Platform.replace(new RegExp(' ', 'g'), '\n') +
          //     "\n" + result.Platform + " ")
          // $SD.api.setTitle(context, result.PU.replace(new RegExp(' ', 'g'), '\n') +
          //     "\n" + result.PU + " ")
          // $SD.api.setTitle(context, result.EA.replace(new RegExp(' ', 'g'), '\n') +
          //     "\n" + result.EA + " ")
      }
  
      function getResults(updateTitleFn) {
          let endPoint = "https://status.robertsspaceindustries.com/static/content/api/v0/systems.en.json";
          $.getJSON(endPoint)
              .done(function (response) {
  
                  updateTitleFn({
                      "Platform": response[0].status,
                      "PU": response[1].status,
                      "EA": response[2].status,
                  });
  
                  console.log("Platform", response[0].status)
                  console.log("PU", response[1].status)
                  console.log("EA", response[2].status)
  
              })
      }
  </code></pre>
  
  <p><strong>Update</strong>
  If I uncomment the sections this is what it shows. Its hard to tell but whats happening is, its taking replacing <code>setTitle</code> three times, and taking the last line. <code>$SD.api.setTitle(context, result.EA.replace(new RegExp(' ', 'g'), '\n') +
           "\n" + result.EA + " ")</code>
  Via Screenshot
  <a href="https://i.stack.imgur.com/A5bAX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A5bAX.png" alt="enter image description here"></a></p>