mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

When special characters such as line breaks exist in "new_memories_with_actions", json conversion fails

Open yingjialong opened this issue 10 months ago • 1 comments

🐛 Describe the bug

{
    "memory": [
        {
            "id": "0",
            "text": "app
                         store",
            "event": "NONE"
        }
    ]
}

When "new_memories_with_actions" is the above content,

new_memories_with_actions = json.loads(new_memories_with_actions)

runs and reports an error: json.decoder.JSONDecodeError: Invalid control character

yingjialong avatar Feb 05 '25 17:02 yingjialong

having the same issue

a-mart avatar Feb 25 '25 22:02 a-mart