@classmethod<EOL><INDENT>def json(cls, data, fields):<DEDENT>
if isinstance(data, str):<EOL><INDENT>print(data)<EOL><DEDENT>elif isinstance(data, dict):<EOL><INDENT>print((json.dumps(data, indent=<NUM_LIT:4>)))<EOL><DEDENT>elif isinstance(data, list):<EOL><INDENT>results = []<EOL>for obj in data:<EOL><INDENT>results.append(cls._object_to_dict(obj, fields))<EOL><DEDENT>print((json.dumps(results, indent=<NUM_LIT:4>)))<EOL><DEDENT>else:<EOL><INDENT>print((json.dumps(cls._object_to_dict(data, fields), indent=<NUM_LIT:4>)))<EOL><DEDENT>
Print a json version of data

            Args:
                data: something to display