We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
we can't use jl command to normalize a json stream with only wanted fields.
jl
$ jl -t '{"name": "string"}' <<EOF {"name": "Martin", "city": "London"} EOF {"name":"Martin","city":"London"}
Add --strict flag (-s for short) to filter out not declared fields.
--strict
-s
$ jl --strict -t '{"name": "string"}' <<EOF {"name": "Martin", "city": "London"} EOF {"name":"Martin"}
The text was updated successfully, but these errors were encountered:
--strict could be used to interrupt the pipeline on first error instead of logging an error and continuing to process lines.
I propose to use --discard or -d instead.
--discard
-d
Sorry, something went wrong.
No branches or pull requests
Problem
we can't use
jl
command to normalize a json stream with only wanted fields.Proposal
Add
--strict
flag (-s
for short) to filter out not declared fields.The text was updated successfully, but these errors were encountered: