Skip to main content

agenthub.monologue_agent.utils.json

my_encoder

def my_encoder(obj)

Encodes objects as dictionaries

Arguments:

  • obj (Object): An object that will be converted

Returns:

  • dict: If the object can be converted it is returned in dict format

dumps

def dumps(obj, **kwargs)

Serialize an object to str format

loads

def loads(s, **kwargs)

Create a JSON object from str