Aller directement au contenu principal

openhands.io.json

OpenHandsJSONEncoder Objects

class OpenHandsJSONEncoder(json.JSONEncoder)

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