Create JSONArray from multiple objects