class_docstr: Handle numpy types when dumping to JSON
code: def default(self, obj):  # pylint: disable=arguments-renamed
      try:
          return obj.tolist()
      except AttributeError:
          pass
      try:
          # numpy scalars
          if obj.dtype.kind == "f":
              return float(obj)
          if obj.dtype.kind == "i":
              return int(obj)
      except AttributeError:
          pass
      return json.JSONEncoder.default(self, obj)
  
file_path: pyproj/pyproj/utils.py
imports: import json
  from array import array
  from enum import Enum, auto
  from typing import Any
label_desc: Use image node_id 1 for calling the NumpyEncoder obj's underlying member method code with example usage: obj.default(obj) and returns: json, obj, float, int