visualizers.viser_app.json_serializer
#
Module Contents#
- class visualizers.viser_app.json_serializer.ConfigEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)#
Bases:
json.JSONEncoder
Custom JSON encoder for NumPy arrays and Path objects. .. py:method:: default(obj)
Overrides encoding for numpy arrays and Path objects.
- visualizers.viser_app.json_serializer.decode_config(obj)#
Custom JSON decoder to handle NumPy arrays and Path strings.