title: Gson Array of Strings to JsonArray
body: <p>I'm using Gson and am trying to add a bunch of string values into a <code>JsonArray</code> like this:</p>
  
  <pre><code>JsonArray jArray = new JsonArray();
  jArray.add("value1");
  </code></pre>
  
  <p>The problem is that the add method only takes a <code>JsonElement</code>.</p>
  
  <p>I've tried to cast a String into a <code>JsonElement</code> but that didn't work.</p>
  
  <p>How do I do it using Gson?</p>