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
taxonkit list
Adding the --json flag to the example included in the documentation for taxonkit list produces output that is not well-formed JSON.
--json
$ taxonkit list --json --ids 9605,239934 > result.json
This can be confirmed with a JSON linter like https://jsonlint.com/ or, as I discovered it, with Python's JSON parser.
>>> import json >>> with open('result.json') as fh: ... result = json.load(fh) Traceback (most recent call last): File "<stdin>", line 2, in <module> File "/home/standage/anaconda3/envs/taxonkit/lib/python3.7/json/__init__.py", line 296, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/home/standage/anaconda3/envs/taxonkit/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/home/standage/anaconda3/envs/taxonkit/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/home/standage/anaconda3/envs/taxonkit/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 13 column 5 (char 149) >>>
taxonkit version
The text was updated successfully, but these errors were encountered:
taxonkit list: fix json output #30
9ccfe2a
fixed:
Sorry, something went wrong.
Looks great—I confirmed it's working on my end. Thanks for the prompt response!
I'm working on Python bindings for TaxonKit. Please let me know when a bugfix release is available from bioconda.
In 1-2 day.
No branches or pull requests
Adding the
--json
flag to the example included in the documentation for taxonkit list produces output that is not well-formed JSON.This can be confirmed with a JSON linter like https://jsonlint.com/ or, as I discovered it, with Python's JSON parser.
Prerequisites
taxonkit version
Describe your issue
The text was updated successfully, but these errors were encountered: