In order to guarantee encapsulation of the JSONObject's be used throughout the wrapper the JSONHandler class was created. But, it wasn't instantiated as soon as the JSONObject was returned from the API. This PR will change that.
The benefit of this is proxy classes will not be instantiating their own JSONHandler's. Instead, it will automatically be returned from the RequestFactory.
In order to guarantee encapsulation of the
JSONObject
's be used throughout the wrapper theJSONHandler
class was created. But, it wasn't instantiated as soon as theJSONObject
was returned from the API. This PR will change that.The benefit of this is proxy classes will not be instantiating their own
JSONHandler
's. Instead, it will automatically be returned from theRequestFactory
.