code: def _transform_field(field):
      
      if isinstance(field, bool):
          return TRUE if field else FALSE
      elif isinstance(field, (list, dict)):
          return json.dumps(field, sort_keys=True, ensure_ascii=False)
      else:
          return field
docs: transform field for displaying