update to new JSONObject version