json_utils
| CLASS | DESCRIPTION |
|---|---|
CustomEncoder |
Encoder which can serialize a few non-standard selected types. |
| FUNCTION | DESCRIPTION |
|---|---|
json_dumps |
The standard |
Classes
CustomEncoder
Bases: JSONEncoder
Encoder which can serialize a few non-standard selected types.
Source code in fractal_server/json_utils.py
Functions:
json_dumps(obj)
The standard json.dumps, with a custom encoder.
This could be optimized through pydantic.TypeAdapter if needed, as in
benchmarks/json_serialization/ folder for details.