Added a helper addObjects(JSONArray)