convert JSONArray as data type