Skip to content

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

Open
@yingjialong

Description

@yingjialong

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions