* Test a 'join' of a JSONArray
*/
public void test_JoinDelimiter() {
Exception ex = null;
try {
JSONArray jArray = new JSONArray("[1, true, false, null, \"My String\", [1,2,3], {\"foo\":\"bar\"}]");
String joined = jArray.join("|");
assertTrue(joined.equals("1|true|false|null|My String|[1,2,3]|{\"foo\":\"bar\"}"));
} catch (Exception ex1) {
ex = ex1;
ex.printStackTrace();
}