haive.core.graph.common.serialization¶
Utilities for serialization and deserialization.
Functions¶
|
Ensure an object can be serialized to JSON. |
|
Convert a JSON string to an object. |
|
Convert an object to a JSON string. |
Module Contents¶
- haive.core.graph.common.serialization.ensure_serializable(obj)[source]¶
Ensure an object can be serialized to JSON.
- Parameters:
obj (Any) – Object to make serializable
- Returns:
JSON-serializable version of the object
- Return type:
Any