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
Describe the bug There's an invalid numeric literal error when the input preceded by non-json line.
To Reproduce
$ cat broken.json; echo -n "\nJQ output:\n\n"; jq -Rr 'fromjson // .' broken.json dummy {"wat-da":100} {"work-dat":"100"} JQ output: jq: error (at broken.json:1): Invalid numeric literal at EOF at line 1, column 5 (while parsing 'dummy') jq: error (at broken.json:2): Invalid numeric literal at line 1, column 14 (while parsing '{"wat-da":100}') { "work-dat": "100" } $ cat moved.json; echo -n "\nJQ output:\n\n"; jq -Rr 'fromjson // .' moved.json {"wat-da":100} {"work-dat":"100"} dummy JQ output: { "wat-da": 100 } { "work-dat": "100" } jq: error (at moved.json:3): Invalid numeric literal at EOF at line 1, column 5 (while parsing 'dummy')
Expected behavior
$ cat broken.json; echo -n "\nJQ output:\n\n"; jq -Rr 'fromjson // .' broken.json dummy {"wat-da":100} {"work-dat":"100"} JQ output: jq: error (at broken.json:1): Invalid numeric literal at EOF at line 1, column 5 (while parsing 'dummy') { "wat-da": 100 } { "work-dat": "100" }
Environment (please complete the following information):
$ jq --version jq-- $ equery l jq * Searching for jq ... [IP-] [ ] app-misc/jq-1.7_pre20201109:0
The text was updated successfully, but these errors were encountered:
Seems similar to #2400?
Sorry, something went wrong.
Could be.
It is definitely connected. I just tested it and #2400 fixes this issue too.
This bug was fixed by #2400 (c4d39c4).
No branches or pull requests
Describe the bug
There's an invalid numeric literal error when the input preceded by non-json line.
To Reproduce
Expected behavior
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: