fixes for org.json.simple.JSONObject cannot be cast to org.json.simple.JSONArray