Code example for JSONArray

Methods: put

0
    simple1.put("boolean", true);
    simple1.put("string", "abc");
 
    array.put("boolean", true);
    array.put("string", "abc");
    JSONArray a = new JSONArray();
    a.put("a1");
    a.put("a2");
    a.put("a3");
    array.put("array", a);
 
  } 
 
  @Test 
  public void empty() throws JSONException { 
    Map<String, Object> decoded = new IOSCapabilities(empty).getRawCapabilities();
    Assert.assertTrue(decoded.isEmpty());
  } 
 
 
  @Test