add set method to JSONObject class