title: List of integers to JsonArray in GSON
body: <p>Right now my code is simply</p>
  
  <pre><code>// list is a List&lt;Integer&gt;
  
  JsonArray arr = new JsonArray();
  for(int i : list) {
      array.add(i);
  }
  </code></pre>
  
  <p>I'm somewhat shocked looking through the API I haven't found a less manual, more functional way to do this. I would expect an <code>addRange</code>, <code>addArray</code>, constructor to go from a <code>Collection</code> to a <code>JsonArray</code>, etc. Is there one, or is there some fundamental limitation that makes this impossible?</p>