code: def default(self, obj):
      if isinstance(obj, np.integer):
          return int(obj)
      elif isinstance(obj, np.floating):
          return float(obj)
      elif isinstance(obj, np.ndarray):
          return obj.tolist()
      else:
          return super(JSEncoder, self).default(obj)
  
imports: import json
  import numpy
label_desc: Use image node_id 1 for calling the JSEncoder obj's underlying member method code with example usage: obj.default(obj) and returns: int, float, obj, super