@classmethod<EOL><INDENT>def output(cls, data, fields=None, json=False, headers={}):<DEDENT>
if json:<EOL><INDENT>cls.json(data, fields)<EOL><DEDENT>else:<EOL><INDENT>cls.tabulate(data, fields, headers)<EOL><DEDENT>
Print either json or tabulate data

            Args:
                data: the data to display