Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yingjialong opened this issue Feb 5, 2025 · 0 comments

Comments

@yingjialong
Copy link

yingjialong commented Feb 5, 2025

🐛 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant