--- sidebar_label: json title: agenthub.monologue_agent.utils.json --- #### my\_encoder ```python 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 ```python def dumps(obj, **kwargs) ``` Serialize an object to str format #### loads ```python def loads(s, **kwargs) ``` Create a JSON object from str