* Test a basic JSON Array construction and helper 'put' function
*/
public void test_putJSONObject() {
Exception ex = null;
try {
JSONArray jArray = new JSONArray();
jArray.put(new JSONObject());
JSONObject obj = (JSONObject)jArray.get(0);
assertTrue(obj != null);
assertTrue(obj instanceof JSONObject);
assertTrue(((JSONObject)jArray.get(0)).toString().equals("{}"));
} catch (Exception ex1) {
ex = ex1;
ex.printStackTrace();
}
assertTrue(ex == null);