add a json() method to GitlabObject's