add support for JSONArray