add set method to JSONObject class

By using this library, I found it easier to have a set method so that we can update directly the value of a specific key.