added code in JSONObject and JSONArray