code: def run(self):
          
          # read inputs
          indent = int(self.tcex.playbook.read(self.args.indent))
          json_data = self.tcex.playbook.read(self.args.json_data)
  
          # get the playbook variable type
          json_data_type = self.tcex.playbook.variable_type(self.args.json_data)
  
          # convert string input to dict
          if json_data_type in ['String']:
              json_data = json.loads(json_data)
  
          # generate the new "pretty" json (this will be used as an option variable)
          try:
              self.pretty_json = json.dumps(json_data, indent=indent, sort_keys=self.args.sort_keys)
          except Exception:
              self.tcex.exit(1, 'Failed parsing JSON data.')
  
          # set the App exit message
          self.exit_message = 'JSON prettified.'
docs: Run the App main logic.
  
          This method should contain the core logic of the App.