title: How to add a tag/value to a JSONObject in GWT?
body: <p>I'd like to send some JSON data to a server from a GWT client app.</p>
  
  <p>I'm trying this:</p>
  
  <pre><code>JSONObject parameters = new JSONObject();
  String v1 = "string"
  int v2 = 1000
  JSONArray v3 = new JSONArray();
  v3.put(1);
  v3.put(2);
  
  parameters.put("key1", v1);
  parameters.put("key2", v2);
  parameters.put("key3", v3);
  </code></pre>
  
  <p>The issue is JSONObject.put() takes a JSONValue as a 2nd parameter and I can't see how I can create a JSONValue as it's an abstract class. How can I put the values of Ints, Strings and arrays into a JSONObject via put(). Is this a correct approach?</p>