code: def to_json(self):
      self._uniq_values = [str(i) for i in list(self._uniq_values)]
      data_json = {
          "new_columns": list(self._new_columns),
          "unique_values": self._uniq_values,
          "old_column": self._old_column,
      }
  
      if (
          "True" in self._uniq_values
          and "False" in self._uniq_values
          and len(self._uniq_values) == 2
      ):
          self._uniq_values = [False, True]
  
      return data_json
  
file_path: mljar-supervised/supervised/preprocessing/label_binarizer.py
imports: import json
  import numpy
label_desc: Use image node_id 5 for calling the LabelBinarizer obj's underlying member method code with example usage: obj.to_json() and returns: data_json