The data type to return depends on the class that is passed in to the method getJsonObject