-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
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
Configuration file not parsing correctly. #24
Comments
@rouilj I tested both cases and they work for me. I checked and the problem seems to be passing extra arguments with the |
@dvrd Hmm, for me even running:
results in the same error. I would claim that --import should be able to work with command
where "tax: 0.13" is present in ABCD.json, what is the tax? I can see two ways to handle it:
For testing, I am using docker to compile/run the example. On the host:
Note my uid/gid on the host is 1000, 1000. Inside the running container:
Ideas on how to debug this? Thanks. |
Well for that output example you have an extra comma in the json. Json cannot have linggering commas |
Yup, that's how it's documented as I noted in my original report. jq noted that it was incorrect. I agree that mixing --import and other command line parameters are the cause of the issue. |
The example JSON contains a lingering comma. |
Using a configuration file formatted like:
and a command line:
I get:
with no info as to why it failed. If I run
jq . ABCD.json
, it passes without error:Using your example input:
fails jq because of the trailing '
,
'. If I remove that so jq is happy, I still get the error: 'file is not formatted correctly'.Ideas?
Thanks.
The text was updated successfully, but these errors were encountered: