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
jq.node should support JSON lines and/or simply a stream of \n separated records.
\n
Support this:
$ echo -e '{"foo": "bar"}\n{"baz": "qux"}' | jq '.' { "foo": "bar" } { "baz": "qux" }
The text was updated successfully, but these errors were encountered:
A JS only workaround right now is to use https://www.npmjs.com/package/jsonlines2json
echo -e '{"foo": "bar"}\n{"baz": "qux"}' | jsonlines2json | jqn
There are a couple other jsonlines parsers I found on npm, but jsonlines2json is the only one I found with a CLI.
jsonlines2json
Perhaps initial support could be jq's --slurp option. We could just use the node API of jsonlines2json. Or we can look for another package
jq
--slurp
Sorry, something went wrong.
No branches or pull requests
jq.node should support JSON lines and/or simply a stream of
\n
separated records.Support this:
The text was updated successfully, but these errors were encountered: