fixed JSONArray to list and vice-versa converter