docs: def json_formatter(obj):
      """
      Format the output in JSON
      :param obj:
      :return:
      """
      if isinstance(obj, str):
          # Make a list of size 1
          return json.dumps([obj], indent=True)
      else:
          return json.dumps(obj, indent=True, sort_keys=True)