Format List as JSONArray