bloqade.analog.serialize.dumps
← Module overview
function
source
functiondumps¶source
bloqade.analog.serialize.dumps
def dumps(o: Any, use_decimal: bool = True, **json_kwargs={}) -> strSerialize object to string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
o | Any | required | the object to serialize |
use_decimal | bool | True | use decimal.Decimal for numbers. Defaults to True. |
**json_kwargs | — | {} |
Returns
strstr: the serialized object as a string