title: Adding space between values of a json array in JSP
body: <p>I am having some names as output in a JSP like:</p>
  
  <pre><code>&lt;div class="someClass"&gt;
          ${myData.personsList}
  &lt;/div&gt;
  </code></pre>
  
  <p>Here, <code>myData</code> is a <code>JSON</code> object with <code>personsList</code> as a <code>JSONArray</code>.</p>
  
  <p>The output I get is:</p>
  
  <pre><code>Henry Foo,Michael Bar,Johnny Lost,Vicky Found
  </code></pre>
  
  <p>How do I add space between the names so that the output is like:</p>
  
  <pre><code>Henry Foo, Michael Bar, Johnny Lost, Vicky Found
  </code></pre>
  
  <p>I tried <code>${myData.personsList.join(', ')}</code> and <code>${myData.personsList}.join(', ')</code> but both are literally printing <code>.join(', ')</code> and not interpreting like I am assuming.</p>