final JSONObject personObj1 = new JSONObject();
personObj1.accumulate("type", "PERSON");
personObj1.accumulate("name", personName1);
final JSONObject personObj2 = new JSONObject();
personObj2.accumulate("type", "PERSON");
personObj2.accumulate("name", personName2);
JSONArray recipientArr = new JSONArray();
recipientArr.add(personObj1);
recipientArr.add(personObj2);