logging the value of JSONObject in the console successfully