Skip to content

Add a terminal alias to pretty print non json output in json for use in shell pipelines #123

Description

@tzeikob

For use cases like getting an output of a shell command in non valid json form add and use the following alias:

alias pt="jq -R '. as \$l | try (fromjson) catch (\$l + \"\n\" | stderr | empty)'"

Metadata

Metadata

Assignees

Labels

FEATURENew feature to be added

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions