Skip to content

records search --raw emits unescaped control characters — output is not valid strict JSON #72

Description

@JordanCoin

records search 'Uranium Energy Corp' --source sec --raw --limit 60 produced output that fails json.loads with 'Invalid control character at: line 849 column 79' (2026-08-11, v4.1.0). Raw control chars from source data (EFTS snippets/display names) are passed through unescaped. Anyone piping --raw into jq/python — the whole point of --raw — hits this intermittently depending on which filings match. Fix: json.dumps(..., ensure_ascii=False) on a sanitized structure rather than string-assembled output, plus a test fixture containing a control character.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions