Skip to content

Can't pipe json output to jq #184

Closed
@Tobbe

Description

@Tobbe

npx @arethetypeswrong/cli -P -f json | jq doesn't work
I get jq: parse error: Unfinished string at EOF at line 1, column 98304

image

Redirecting the output to a file, and then reading that file with jq does work however.

image

I think I see something similar when I try to tee the output:
image
image

As you can see the terminal output ends unexpectedly.
(But the file I teed to (attw.json) has the complete output and can be parsed by jq)

So it seems something weird happens with the output when it's piped to another command

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