跳到主要内容

openhands.core.utils.json

my_default_encoder

def my_default_encoder(obj)

Custom JSON encoder that handles datetime and event objects

dumps

def dumps(obj, **kwargs)

Serialize an object to str format

loads

def loads(json_str, **kwargs)

Create a JSON object from str