code: def default(self, o):
      if isinstance(o, np.integer):
          return int(o)
      elif isinstance(o, np.floating):
          return float(o)
      elif isinstance(o, np.ndarray):
          return o.tolist()
      elif isinstance(o, np.bool_):
          return super().encode(bool(o))
      else:
          return super().default(o)
  
file_path: aequitas/src/aequitas/fairflow/plots/pareto/visualize.py
imports: import json
  from datetime import datetime
  from string import Template
  from uuid import uuid4
  import numpy
  import pkg_resources
  from .plot import Plot
label_desc: Use image node_id 1 for calling the _CustomJSONEncoder obj's underlying member method code with example usage: obj.default(o) and returns: int, float, o, super, super