Skip to content
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

[Package request] jc #35804

Closed
paoloschi opened this issue Feb 23, 2022 · 3 comments
Closed

[Package request] jc #35804

paoloschi opened this issue Feb 23, 2022 · 3 comments
Labels
request Package request

Comments

@paoloschi
Copy link

jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts.
This allows further command-line processing of output with tools like jq or jello by piping commands...
The jc parsers can also be used as python modules. In this case the output will be a python dictionary, or list of dictionaries, instead of JSON

https://github.com/kellyjonbrazil/jc

@paper42 paper42 added the request Package request label Feb 24, 2022
abenson added a commit that referenced this issue Mar 28, 2022
@abenson abenson closed this as completed Mar 28, 2022
@abenson
Copy link
Contributor

abenson commented Mar 28, 2022

Closed in a743b68.

@paoloschi
Copy link
Author

note that for parsing XML files, jc also depends on the python3-xmltodict package:

$ curl -s 'https://www.w3schools.com/xml/note.xml' | jc --xml
jc:  Error - Parser issue with xml:
             LibraryNotInstalled: The xmltodict library is not installed.
             If this is the correct parser, try setting the locale to C (LANG=C).
             For details use the -d or -dd option. Use "jc -h --xml" for help.

after installed python3-xmltodict:

$ curl -s 'https://www.w3schools.com/xml/note.xml' | jc --xml
{"note":{"to":"Tove","from":"Jani","heading":"Reminder","body":"Don't forget me this weekend!"}}

@abenson
Copy link
Contributor

abenson commented Mar 31, 2022

Sorry about that, it's been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request
Projects
None yet
Development

No branches or pull requests

3 participants