code: def pprint(j, no_pretty):
      
      if not no_pretty:
          click.echo(
              json.dumps(j, cls=PotionJSONEncoder, sort_keys=True, indent=4, separators=(",", ": "))
          )
      else:
          click.echo(j)
docs: Prints as formatted JSON