agent0.hyperlogs.json_encoder
Extend the default JSON encoder to include additional types.
Classes
Custom encoder for JSON string dumps. |
Module Contents
- class agent0.hyperlogs.json_encoder.ExtendedJSONEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)
Bases:
json.JSONEncoderCustom encoder for JSON string dumps.
- default(o: Any) Any
Override default behavior.
- Parameters:
o (Any) – The object to be converted to JSON.
- Returns:
The corresponding object ready to be serialized to JSON.
- Return type:
Any