code: def output_json(gandi, format, value):
      
      if format == 'json':
          gandi.echo(json.dumps(value, default=date_handler, sort_keys=True))
      elif format == 'pretty-json':
          gandi.echo(json.dumps(value, default=date_handler, sort_keys=True,
                                indent=2, separators=(',', ': ')))
docs: Helper to show json output