Removing the pager labels when the toJSON is called